constant.py 372 B

12345678910111213
  1. from operator import index
  2. from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
  3. from app.models.database import BaseModel
  4. class Constant(BaseModel):
  5. __tablename__ = 'constant'
  6. id = Column(Integer, primary_key=True, index=True)
  7. # 常量类型
  8. type = Column(String, nullable=False)
  9. # 常量值
  10. value = Column(String, nullable=False)