移動文件

This commit is contained in:
CrescentLeaf
2025-07-16 22:52:58 +08:00
parent 930a9c6c07
commit 200a867171
27 changed files with 5 additions and 31 deletions

View File

@@ -1,28 +0,0 @@
import Config from "../config.ts"
import User from "./User.ts";
abstract class BaseDataManager {
declare name: string
constructor(name: string) {
this.init(name)
this.onInit()
}
private init(name: string) {
this.name = name
}
abstract onInit(): void
}
class UserDataManager extends BaseDataManager {
static SINGLE_INSTANCE = new UserDataManager('users')
override onInit(): void {
}
}
export default class DataBaseManager {
static getUserDataManager() {
return UserDataManager.SINGLE_INSTANCE
}
}

View File

@@ -1,3 +0,0 @@
export default class User {
}

View File

View File

View File

@@ -0,0 +1,5 @@
import { DatabaseSync } from "node:sqlite"
export default class User {
}