# !/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': '系统配置表'})