
    Eoh                         d dl m Z  d dlmZmZ d dl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)    )datetime)ListOptional)Field)
BaseSchemac                       e Zd ZU  ed      Zee   ed<    ed      Zee   ed<    ed      Z	ee   ed<    ed      Z
ee   ed	<    ed
      Zee   ed<   y)PermissionBasezeName of the module for which this permission is applicable, inclusive of alphanumeric characters only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_orderN)__name__
__module____qualname__r   r   r   str__annotations__r   r   r   r   int     a/var/www/html/wine-match-dev/backend/winematch-backend/src/apps/role_permission/schemas/common.pyr	   r	   	   sl    !{FHSM   %1stIx}t$1XYIx}Y%*7_%`OXc]`#(5V#WM8C=Wr   r	   c                   *    e Zd ZU  ed      Zeed<   y)PermissionSchemazId of permission resourcer
   idN)r   r   r   r   r   r   r   r   r   r   r   r      s     ;<B<r   r   c                   V    e Zd ZU  edd      Zee   ed<    edd      Zee	   ed<   y)RoleBaseNz=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    boolr   r   r   r   r      s.     3rsE8C=s!&t9W!XJXr   r   c                       e Zd ZU  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)
RoleSchemaId of role resourcer
   r   N"System generated slug for the roleslug'Created date and time as unix timestamp
created_atz%Permissions associated with this rolepermissions)r   r   r   r   r   r   r   r&   r   r   r(   r   r)   r   r   r   r   r   r#   r#      s\     56B62VWD(3-W%*4=f%gJ"g49$Ls4tK$/01tr   r#   c                   n    e Zd ZU  ed      Zeed<    ed      Zee	   ed<    ed      Z
ee   ed<   y)	RoleNoDepsSchemar$   r
   r   r%   r&   r'   r(   N)r   r   r   r   r   r   r   r&   r   r   r(   r   r   r   r   r+   r+   $   s;     56B6,PQD(3-Q%*7`%aJ"ar   r+   N)r   typingr   r   pydanticr   src.apps.base.schemas.commonr   r	   r   r   r#   r+   r   r   r   <module>r/      sU     !  3XZ X=~ =
Yz Y
u ubx br   