#!/usr/bin/env python # -*- coding: utf-8 -*- from sqlalchemy import Column, Integer, String from db.base import Base class CasbinRule(Base): __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" {self.id}:'{str(self)}'"