
     3h                         d dl mZmZmZmZmZmZmZmZ d dl	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y)    )ColumnIntegerStringDateTime
ForeignKeyTimeDateBoolean)relationship)datetime)Basec                      e Zd ZdZ eedd      Z ee      Z ee      Z ee      Z	 ee e
d      d      Z ee e
d            Z ee e
d      d      Z eed      Z ee      Z ee      Z ee      Z eed	      Z eeej.                  	      Z eeej.                  ej.                  
      Z edd      Z eed	      Z eddd      Z eddeg      Zy)CalendarPostTypecalendar_post_typesTprimary_keyindexcalendar.idnullablecalendar_posts.idzconnected_accounts.idFdefaultr   onupdateCalendarPost
post_typesback_populates	PostImagecalendar_post_typez[PostImage.post_type_id]r   foreign_keysConnectedAccountN)__name__
__module____qualname____tablename__r   r   idstore_id	branch_iduser_idr   calendar_idcalendar_post_idconnected_account_idr   external_post_id	post_typecontentlinkr
   is_instant_postr   r   utcnow
created_at
updated_atr   calendar_post
is_deletedimagesconnected_account     </var/www/html/hubwallet-dev/src/marketing/apps/post/model.pyr   r   	   s   )M	T	6BgHwIWoG*]";dKKgz2E'FG!':6M+NY]^ft4vIVnG&>DWe4O(//:J(//HOOTJ MM/J+6JYstF$#*+r=   r   c                   r   e Zd ZdZ eedd      Z ee      Z ee      Z ee      Z	 ee e
d      d      Z eed      Z eed      Z ee      Z ee      Z ee      Z eeej,                        Z eeej,                  ej,                        Z ed	d
      Z edd      Z eed      Zy)r   calendar_postsTr   r   r   Fr   r   Calendarpostsr   r   r8   N)r%   r&   r'   r(   r   r   r)   r*   r+   r,   r   r-   r   titler	   schedule_dater   schedule_timepost_statustagsr   r   r5   r6   r7   r   calendarr   r
   r9   r<   r=   r>   r   r   )   s    $M	T	6BgHwIWoG*]";dKK6E*E4%0M4LM.K&>D(//:J(//HOOTJJw?H0QJ/Jr=   r   c                   h   e Zd ZdZ eedd      Z ee e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 eed      Z eed      Z eed      Z ee	      Z ee	      Z eed      Z eed      Z ee	      Z ed	d
      Zy)PostTypeConfigpost_type_configTr   zmaster_accounts.idFr   r   r   MasterAccountr   r   N)r%   r&   r'   r(   r   r   r)   r   master_account_idr   platformr1   r
   supports_textsupports_imagesupports_multiple_imagessupports_videosupports_linktext_max_limittext_optimum_limitimage_ratioimage_best_resolution_pxvideo_max_size_mbvideo_max_length_secadditional_notesr   master_accountr<   r=   r>   rJ   rJ   F   s    &M	T	6Bw
3G(HSXYfu-Hv.I7E2MGU3N%gu=GU3N7E2MGQ/N3.K%f~w2!'15f~!/,ONr=   rJ   c                       e Zd ZdZ eedd      Z ee ed      d      Z ee ed      d      Z	 ee
d      Z ee
d      Z eeej                        Z eed      Z ed	d
e	g      Zy)r    post_imagesTr   r   r   zcalendar_post_types.idFr   r   r:   r"   N)r%   r&   r'   r(   r   r   r)   r   post_idpost_type_idr   	image_url
image_namer   r   r5   r6   r
   r9   r   r!   r<   r=   r>   r    r    _   s    !M	T	6BWj)<=MG':.F#GRVWLv.I.J(//:J/J%&8am`nor=   r    N)
sqlalchemyr   r   r   r   r   r   r	   r
   sqlalchemy.ormr   r   src.utils.dbr   r   r   rJ   r    r<   r=   r>   <module>re      sQ    W W W '  
t @04 00
PT P2p pr=   