update for restructure

This commit is contained in:
2025-11-11 12:15:40 +08:00
parent 7cfb433aaf
commit c42648d1b4
15 changed files with 880 additions and 306 deletions
+14
View File
@@ -0,0 +1,14 @@
from peewee import SqliteDatabase, Model, CharField, IntegerField, FloatField, BooleanField
from core.logger import LogLevel, PrintLog
from xtquant import xtconstant
# 连接到SQLite数据库
db = SqliteDatabase('example.db')
db.connect()
PrintLog(LogLevel.INFO, '- [成功]数据库连接')
# 定义基础模型类
class BaseModel(Model):
class Meta:
database = db