修改路径,从src放到根目录

This commit is contained in:
zqc
2026-01-08 10:32:36 +08:00
parent 96589ebdbd
commit f86effd63c
37 changed files with 51 additions and 410 deletions

24
models/sur_config.py Normal file
View File

@@ -0,0 +1,24 @@
"""
配置表模型
"""
from sqlalchemy import Column, Integer, String, Text, DateTime, func, SmallInteger
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class SurConfigBase(Base):
"""配置基础表"""
__tablename__ = "sur_config_base"
id = Column(Integer, primary_key=True, index=True)
config_type = Column(SmallInteger, nullable=False, comment="配置类型0=人脸识别")
group_id = Column(Integer, nullable=False, comment="组id")
config_key = Column(Text, nullable=False, comment="")
config_value = Column(Text, comment="")
description = Column(Text, comment="备注")
created_time = Column(DateTime, comment="创建时间")
updated_time = Column(DateTime, comment="修改时间")
created_by = Column(Integer, comment="创建人")
updated_by = Column(Integer, comment="修改人")