from sqlalchemy import Boolean, Column, ForeignKey, Integer, String from app.models.database import BaseModel class Roles(BaseModel): __tablename__ = "roles" id = Column(Integer, primary_key=True, index=True) # 角色名称 name = Column(String, nullable=False) # 角色编码 code = Column(String, nullable=False)