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:49
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:33
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:6
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:13
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:23
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:59
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:43
[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:71
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:117
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:64
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:91
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:81
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:107
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:101
[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:139
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:159
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:165
static const std::unordered_set< std::string > & BlobColumns()
Returns a set of blob column names for the table.
Definition AujardModel.cpp:149
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:129
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:122
const int32_t & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:175
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:197
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:217
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:207
int16_t Members
Column [Members]: Member count.
Definition AujardModel.h:213
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:180
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:187
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:233
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:223
[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:255
const std::string & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:291
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:265
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:281
std::string UserId
Column [strUserId]: User identifier.
Definition AujardModel.h:255
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:238
static modelUtil::DbType DbType()
Returns the associated database type for the table.
Definition AujardModel.cpp:275
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:245
[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:313
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:333
static const std::vector< std::string > & PrimaryKey()
Returns the columns associated with the table's Primary Key.
Definition AujardModel.cpp:339
const std::string & MapKey() const
Returns a value for use in map keys based on the table's primary key.
Definition AujardModel.cpp:349
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:323
static const std::string & TableName()
Returns the table name.
Definition AujardModel.cpp:296
static const std::unordered_set< std::string > & ColumnNames()
Returns a set of column names for the table.
Definition AujardModel.cpp:303
DbType
Database type identifier.
Definition ModelUtil.h:14