12345678910111213 |
- from operator import index
- from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
- from app.models.database import BaseModel
- class Constant(BaseModel):
- __tablename__ = 'constant'
- id = Column(Integer, primary_key=True, index=True)
- # 常量类型
- type = Column(String, nullable=False)
- # 常量值
- value = Column(String, nullable=False)
|