
    {i	                         d dl mZmZ d dlmZ d dlmZmZ d dlmZ  G d de      Z	 G d de	      Z
 G d	 d
e      Z G d de      Z G d de      Zy)    )Field
ConfigDict)datetime)ListOptional)
BaseSchemac                       e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<    edd	      Zee   e	d
<    edd      Zee   e	d<    edd      Zee   e	d<   y)PermissionBaseTfrom_attributesNzeName of the module for which this permission is applicable, inclusive of alphanumeric characters onlydefaultdescriptionmodulez@Name of the submodule, inclusive of alphanumeric characters only	submodulez%Name of the operation to be performed	operationz&Label of the operation to be performedoperation_labelzDisplay order of the permissiondisplay_order)__name__
__module____qualname__r   model_configr   r   r   str__annotations__r   r   r   r   int     v/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/role_permissions/schemas/role_permission_common.pyr
   r
      s    d3L!{FHSM   %V Ix}   %; Ix}  &+<&OXc]  $)Cd#eM8C=er   r
   c                   <    e Zd ZU  ed      Z ed      Zeed<   y)PermissionSchemaTr   zId of permission resourcer   idN)	r   r   r   r   r   r   r"   r   r   r   r   r   r    r       s    d3L ;<B<r   r    c                   h    e Zd ZU  ed      Z edd      Zee   e	d<    edd      Z
ee   e	d<   y)	RoleBaseTr   Nz=Label for the role, inclusive of alphanumeric characters onlyr   labelzIs this role a default role?
is_default)r   r   r   r   r   r   r%   r   r   r   r&   boolr   r   r   r$   r$   $   s?    d3L SE8C=  "'tA_!`J`r   r$   c                       e Zd ZU  ed      Z ed      Zeed<    edd      Z	e
e   ed	<    edd
      Ze
e   ed<    edd      Ze
ee      ed<   y)
RoleSchemaTr   Id of role resourcer!   r"   N"System generated slug for the roler   slug'Created date and time as unix timestamp
created_atz&Permissions assosciated with this rolepermissions)r   r   r   r   r   r   r"   r   r   r,   r   r   r.   r   r/   r   r    r   r   r   r)   r)   .   sr    d3L 56B6:^_D(3-_%*=&J" 
 5:<5K$/01 r   r)   c                       e Zd ZU  ed      Z ed      Zeed<    edd      Z	e
e   ed	<    edd
      Ze
e   ed<   y)RoleNoDepsSchemaTr   r*   r!   r"   Nr+   r   r,   r-   r.   )r   r   r   r   r   r   r"   r   r   r,   r   r   r.   r   r   r   r   r1   r1   ?   sN    d3L 56B6:^_D(3-_%*=&J" r   r1   N)pydanticr   r   r   typingr   r   src.apps.base.schemas.commonr   r
   r    r$   r)   r1   r   r   r   <module>r5      sQ    &  ! 3fZ f,=~ =az a "x r   