This commit is contained in:
2026-01-04 17:46:48 +08:00
parent 988947aa1a
commit 5a26f5f7b3
13 changed files with 170 additions and 94 deletions
+1 -2
View File
@@ -1,10 +1,9 @@
from peewee import SqliteDatabase, Model
from core.logger import LogLevel, PrintLog
# 连接到SQLite数据库
db: SqliteDatabase = SqliteDatabase('example.db')
db.connect()
PrintLog(LogLevel.INFO, '- [成功]数据库连接')
print("Database connected")
# 定义基础模型类
class BaseModel(Model):