feat: implement lobby functionality with user and server information retrieval
This commit is contained in:
@@ -148,6 +148,7 @@ model City {
|
||||
|
||||
model General {
|
||||
id Int @id
|
||||
userId String? @map("user_id")
|
||||
name String
|
||||
nationId Int @default(0) @map("nation_id")
|
||||
cityId Int @default(0) @map("city_id")
|
||||
@@ -271,3 +272,10 @@ model LogEntry {
|
||||
@@index([userId, category, id])
|
||||
@@map("log_entry")
|
||||
}
|
||||
|
||||
model SystemSetting {
|
||||
id Int @id @default(1) @map("no")
|
||||
notice String @default("") @map("notice")
|
||||
|
||||
@@map("system")
|
||||
}
|
||||
|
||||
@@ -15,12 +15,20 @@ export interface DatabaseClient<
|
||||
};
|
||||
general: {
|
||||
findUnique(args: { where: { id: number } }): Promise<GeneralRow | null>;
|
||||
findFirst(args: {
|
||||
where: { userId?: string; npcState?: number | { gt: number } };
|
||||
select?: { name?: boolean; picture?: boolean };
|
||||
}): Promise<GeneralRow | null>;
|
||||
count(args?: {
|
||||
where?: { npcState?: number | { gt: number } };
|
||||
}): Promise<number>;
|
||||
};
|
||||
city: {
|
||||
findUnique(args: { where: { id: number } }): Promise<CityRow | null>;
|
||||
};
|
||||
nation: {
|
||||
findUnique(args: { where: { id: number } }): Promise<NationRow | null>;
|
||||
count(args?: { where?: { level?: { gt: number } } }): Promise<number>;
|
||||
};
|
||||
generalTurn: {
|
||||
findMany(args: {
|
||||
|
||||
Reference in New Issue
Block a user