1#ifndef AUJARD_MODEL_AUJARDMODEL_H
2#define AUJARD_MODEL_AUJARDMODEL_H
6#include <ModelUtil/ModelUtil.h>
10#include <unordered_set>
13namespace aujard_binder
53 static const std::unordered_set<std::string>&
ColumnNames();
59 static const std::unordered_set<std::string>&
BlobColumns();
65 static const std::vector<std::string>&
PrimaryKey();
68 const int16_t&
MapKey()
const;
110 static const std::unordered_set<std::string>&
ColumnNames();
116 static const std::unordered_set<std::string>&
BlobColumns();
122 static const std::vector<std::string>&
PrimaryKey();
125 const std::string&
MapKey()
const;
162 static const std::unordered_set<std::string>&
ColumnNames();
168 static const std::unordered_set<std::string>&
BlobColumns();
174 static const std::vector<std::string>&
PrimaryKey();
177 const int32_t&
MapKey()
const;
224 static const std::unordered_set<std::string>&
ColumnNames();
230 static const std::unordered_set<std::string>&
BlobColumns();
236 static const std::vector<std::string>&
PrimaryKey();
239 const int16_t&
MapKey()
const;
271 static const std::unordered_set<std::string>&
ColumnNames();
277 static const std::unordered_set<std::string>&
BlobColumns();
283 static const std::vector<std::string>&
PrimaryKey();
286 const std::string&
MapKey()
const;
322 std::optional<std::vector<uint8_t>>
Serial;
328 static const std::unordered_set<std::string>&
ColumnNames();
334 static const std::unordered_set<std::string>&
BlobColumns();
340 static const std::vector<std::string>&
PrimaryKey();
343 const std::string&
MapKey()
const;
generated nanodbc column binder for aujard_model::Battle
Definition AujardBinder.h:29
generated nanodbc column binder for aujard_model::CurrentUser
Definition AujardBinder.h:52
generated nanodbc column binder for aujard_model::Item
Definition AujardBinder.h:81
generated nanodbc column binder for aujard_model::Knights
Definition AujardBinder.h:101
generated nanodbc column binder for aujard_model::UserData
Definition AujardBinder.h:133
generated nanodbc column binder for aujard_model::Warehouse
Definition AujardBinder.h:156
[BATTLE] Battle data for the game server
Definition AujardModel.h:29
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:43
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:29
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:5
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:11
std::optional< std::string > UserName
Column [strUserName]: User Name.
Definition AujardModel.h:47
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:20
int16_t Index
Column [sIndex]: Server Index.
Definition AujardModel.h:37
uint8_t Nation
Column [byNation]: Nation Identifier.
Definition AujardModel.h:42
const int16_t & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:52
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:38
[CURRENTUSER] Keeps track of users currently connected to the server
Definition AujardModel.h:76
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:62
std::string ServerIP
Column [strServerIP]: Server IP Address.
Definition AujardModel.h:89
const std::string & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:103
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:56
std::string AccountId
Column [strAccountID]: User Account Identifier.
Definition AujardModel.h:94
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:80
int32_t ServerId
Column [nServerNo]: Server Index.
Definition AujardModel.h:84
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:71
std::string ClientIP
Column [strClientIP]: User IP Address.
Definition AujardModel.h:104
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:94
std::string CharId
Column [strCharID]: User Character Name.
Definition AujardModel.h:99
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:89
[ITEM] Item information
Definition AujardModel.h:133
uint8_t Countable
Column [Countable]: Price at which item can be sold to a merchant.
Definition AujardModel.h:147
int32_t ID
Column [Num]: Item number.
Definition AujardModel.h:141
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:122
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:140
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:145
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:131
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:113
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:107
const int32_t & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:154
EnumCountable
Known valid values for Countable.
Definition AujardModel.h:152
[KNIGHTS] Knights are the clan/guild system of the game
Definition AujardModel.h:185
int32_t Points
Column [Points]: National points.
Definition AujardModel.h:218
int16_t ID
Column [IDNum]: Identification number.
Definition AujardModel.h:193
uint8_t Nation
Column [Nation]: Nation identifier.
Definition AujardModel.h:198
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:173
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:191
uint8_t Ranking
Column [Ranking]: Ranking by sum of members National Points.
Definition AujardModel.h:203
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:182
int16_t Members
Column [Members]: Member count.
Definition AujardModel.h:213
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:158
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:164
std::string Name
Column [IDName]: Name of the Knights clan.
Definition AujardModel.h:208
const int16_t & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:205
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:196
[USERDATA] User data contains saved character information
Definition AujardModel.h:247
int32_t DwTime
Column [dwTime]: DwTime TODO.
Definition AujardModel.h:265
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:224
const std::string & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:256
int32_t Exp
Column [Exp]: Experience.
Definition AujardModel.h:260
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:233
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:247
std::string UserId
Column [strUserId]: User identifier.
Definition AujardModel.h:255
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:209
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:242
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:215
[WAREHOUSE] The warehouse system is referred to as the Inn in-game. It is account-level storage for a...
Definition AujardModel.h:294
static const std::vector< std::string > & OrderedColumnNames()
Returns an ordered vector of column names for the table.
Definition AujardModel.cpp:275
int32_t DwTime
Column [dwTime]: DwTime TODO.
Definition AujardModel.h:312
std::optional< std::vector< uint8_t > > Serial
Column [strSerial]: Serial TODO.
Definition AujardModel.h:322
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:293
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:298
const std::string & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:307
std::optional< std::vector< uint8_t > > ItemData
Column [WarehouseData]: Data on items stored in the warehouse.
Definition AujardModel.h:317
int32_t Money
Column [nMoney]: Money stored in the warehouse.
Definition AujardModel.h:307
std::string AccountId
Column [strAccountID]: Account identifier.
Definition AujardModel.h:302
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:284
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:260
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:266
DbType
Database type identifier.
Definition ModelUtil.h:14