You've already forked KF-MMO-Server
improved adherence to types
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
import sqlite3 from 'sqlite3'
|
||||
import { open, Database } from 'sqlite'
|
||||
|
||||
export class dbUser{
|
||||
id : number
|
||||
login : string
|
||||
password : string
|
||||
}
|
||||
|
||||
export class dbCharacter{
|
||||
id : number
|
||||
user_id : number
|
||||
level : number
|
||||
inventory : string
|
||||
questBook : string
|
||||
}
|
||||
|
||||
export class DatabaseController {
|
||||
private db: Database;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user