from sqlalchemy import Column, String, Integer, ForeignKey from core.database import Base class PermissionRuleOct(Base): __tablename__ = "permission_rule_oct" __table_args__ = {"schema": "a76"} permission = Column(String(20), primary_key=True, nullable=False) start_date = Column(Integer, nullable=True) end_date = Column(Integer, nullable=True) sector = Column(String(8), nullable=True) system = Column(String(5), nullable=True) tenant_id = Column(String, ForeignKey("a76.tenants.id"), nullable=False)