o
    "i                     @   s8   d Z ddlmZmZmZ ddlmZ G dd deZdS )z5
CasbinRule model for database-driven policy storage
    )ColumnStringInteger)Basec                   @   s   e Zd ZdZdZddiZeedddZee	ddd	Z
ee	dZee	dZee	dZee	dZee	dZee	dZd
d Zdd ZdS )
CasbinRulezB
    CasbinRule model for storing Casbin policies in database
    casbin_ruleschemapublicT)primary_keyautoincrementd   F)nullablec                 C   sJ   | j g}| j| j| j| j| j| jfD ]}|d u r n|| qd|S )Nz, )	ptypev0v1v2v3v4v5appendjoin)selfarrv r   >/lsinfo/ai/hellotax_ai/base_platform/app/models/casbin_rule.py__str__   s    
zCasbinRule.__str__c                 C   s   d| j  dt|  dS )Nz<CasbinRule z: "z">)idstr)r   r   r   r   __repr__    s   zCasbinRule.__repr__N)__name__
__module____qualname____doc____tablename____table_args__r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r      s    r   N)r#   
sqlalchemyr   r   r   app.models.baser   r   r   r   r   r   <module>   s    