1234567891011121314151617181920212223 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from sqlalchemy import Column, Integer, String
- from db import BaseORMModel
- class CasbinRule(BaseORMModel):
- __tablename__ = "casbin_rule"
- id = Column(Integer, primary_key=True, index=True, autoincrement=True)
- ptype = Column(String(255))
- v0 = Column(String(255))
- v1 = Column(String(255))
- v2 = Column(String(255))
- v3 = Column(String(255))
- v4 = Column(String(255))
- v5 = Column(String(255))
- def __repr__(self):
- return f"<CasbinRule> {self.id}:'{str(self)}'"
|