o
    6dh                     @   s.   d dl mZ d dlmZ G dd dejZdS )    )models)Establishmentc                   @   sx   e Zd ZejedejdZejddddZ	ej
ddZej
ddZejddd	Zejddd	ZG d
d dZdd ZdS )SectionT)null	on_deleted   F)
max_lengthr   blank)auto_now_add)auto_nowr   )r   defaultc                   @   s   e Zd ZdZdZdZdS )zSection.Meta)establishment_codesectionr   SectionsN)__name__
__module____qualname__unique_togetherverbose_nameverbose_name_plural r   r   3/var/www/html/backend_erp/masters/models/section.pyMeta   s    r   c                 C   s   | j  S )N)r   )selfr   r   r   __str__   s   zSection.__str__N)r   r   r   r   
ForeignKeyr   SET_NULLr   	CharFieldr   DateTimeField
created_at
updated_atIntegerField
created_by
updated_byr   r   r   r   r   r   r      s    r   N)	django.dbr   masters.models.establishmentr   Modelr   r   r   r   r   <module>   s    