mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-24 04:40:05 +00:00
Add meta table to DB
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
#include "Player.hpp"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#define DATABASE_VERSION 1
|
||||
|
||||
namespace Database {
|
||||
#pragma region DatabaseStructs
|
||||
|
||||
struct Account {
|
||||
int AccountID;
|
||||
@@ -13,11 +15,6 @@ namespace Database {
|
||||
int Selected;
|
||||
time_t BannedUntil;
|
||||
};
|
||||
struct Buddyship {
|
||||
int PlayerAId;
|
||||
int PlayerBId;
|
||||
int16_t Status;
|
||||
};
|
||||
struct EmailData {
|
||||
int PlayerId;
|
||||
int MsgIndex;
|
||||
@@ -32,21 +29,11 @@ namespace Database {
|
||||
uint64_t SendTime;
|
||||
uint64_t DeleteTime;
|
||||
};
|
||||
struct EmailItem {
|
||||
int PlayerId;
|
||||
int MsgIndex;
|
||||
int Slot;
|
||||
int16_t Type;
|
||||
int16_t Id;
|
||||
int32_t Opt;
|
||||
int32_t TimeLimit;
|
||||
};
|
||||
|
||||
|
||||
#pragma endregion DatabaseStructs
|
||||
|
||||
|
||||
void open();
|
||||
void close();
|
||||
void checkMetaTable();
|
||||
void createMetaTable();
|
||||
void createTables();
|
||||
int getTableSize(std::string tableName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user