You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
590 B

3 years ago
# !/usr/bin/env python3
# -*- encoding : utf-8 -*-
# @Filename : settings.py
# @Software : VSCode
# @Datetime : 2023/03/23 13:55:46
# @Author : leo liu
# @Version : 1.0
# @Description :
'''
系统配置模型
'''
from db.base_class import Base
from sqlalchemy import Column, VARCHAR
class Settings(Base):
"""
系统配置表
"""
__tablename__ = "nlt_settings"
key = Column(VARCHAR(32), nullable=False, comment="配置类型")
value = Column(VARCHAR(64), nullable=False, comment="配置值")
__table_args__ = ({'comment': '系统配置表'})