o
    ­Tïj§  ã                   @   sÊ   d dl mZ d dlmZ d dlmZ G dd„ dejƒZG dd„ dejƒZG dd	„ d	ejƒZ	G d
d„ dejƒZ
G dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZG dd„ dejƒZdS )é    )Úmodels)ÚLanguage)ÚParentc                   @   ó6   e Zd Zejddd�Zejddd�Zejddd�ZdS )Ú	CommunityT©ÚnullÚblankN©	Ú__name__Ú
__module__Ú__qualname__r   Ú	TextFieldÚkeyNameÚDateTimeFieldÚcreatedDateÚupdatedDate© r   r   ú]/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/mama_care_api/community/models.pyr      ó    r   c                   @   óZ   e Zd Zejddd�Zejddd�Zejddd�Zej	e
ejdd�Zej	eejdd�ZdS )ÚCommunityLanguageTr   Úlanguage_communitylanguage©Ú	on_deleteÚrelated_nameÚcommunity_communitylanguageN)r   r   r   r   r   Únamer   r   r   Ú
ForeignKeyr   ÚCASCADEÚ
languageIdr   ÚcommunityIdr   r   r   r   r      ó    ý
ýr   c                   @   r   )ÚCommunityCategoryTr   Nr
   r   r   r   r   r#      r   r#   c                   @   r   )ÚCommunityCategoryLanguageTr   Ú"language_communitycategorylanguager   Ú+communitycategory_communitycategorylanguageN)r   r   r   r   r   r   r   r   r   r   r   r   r    r#   ÚcommunityCategoryIdr   r   r   r   r$   #   r"   r$   c                   @   sX   e Zd Zejdd�Zejddd�Zejddd�Zej	e
ejdd�Zej	eejdd�ZdS )	ÚSocialAccountCommunityF)ÚdefaultTr   Úparent_socialaccountcommunityr   Ú community_socialaccountcommunityN)r   r   r   r   ÚBooleanFieldÚ
isSelectedr   r   r   r   r   r   ÚparentIdr   r!   r   r   r   r   r(   3   s    ý
ýr(   c                   @   sZ   e Zd Ze ¡ Ze ¡ Ze ¡ Zej	e
ejdd�Zej	eejdd�Zej	eejdd�ZdS )ÚPostÚsocialaccountcommunity_postr   Úcommunity_postÚcommunitycategory_postN)r   r   r   r   r   Údescriptionr   r   r   r   r(   r   ÚsocialAccountCommunityIdr   r!   r#   r'   r   r   r   r   r/   C   s&    ýý
ýr/   c                   @   sH   e Zd Ze ¡ Ze ¡ Ze ¡ Zej	e
ejdd�Zej	eejdd�ZdS )ÚCommentÚsocialaccountcommunity_commentr   Úpost_commentN)r   r   r   r   r   r3   r   r   r   r   r(   r   r4   r/   ÚpostIdr   r   r   r   r5   X   s    ý
ýr5   c                   @   ó@   e Zd Ze ¡ Ze ¡ Zejeej	dd�Z
ejeej	dd�ZdS )ÚPostSaveÚsocialaccountcommunity_postsaver   Úpost_postsaveN©r   r   r   r   r   r   r   r   r(   r   r4   r/   r8   r   r   r   r   r:   h   ó    ý
ýr:   c                   @   r9   )ÚPostLikeÚsocialaccountcommunity_postliker   Úpost_postlikeNr=   r   r   r   r   r?   w   r>   r?   N)Ú	django.dbr   Úbasic.modelsr   Úuser.modelsr   ÚModelr   r   r#   r$   r(   r/   r5   r:   r?   r   r   r   r   Ú<module>   s    