o
    h                     @   sH   d dl mZmZmZ G dd deZG dd deZG dd deZdS )	    )Schemafieldsvalidatec                   @   s   e Zd ZejddZejdejdddZ	ejddZ
ejdejdddZejddZejdejdddZejddZejddZejddZd	S )
ContentSchemaTZ	dump_only   maxrequiredr   r   
allow_noner   )r   N)__name__
__module____qualname__r   IntidStrr   Lengthheadlinecontent_body	video_urllinkhead_bannersummaryDateTime
created_at
updated_at r   r   7/home/www/bk.finsightngr.online/FinSight/app/schemas.pyr      s    r   c                   @   sr   e Zd ZejddZejdejdddZ	ejdejdddZ
ejdejdddZejddZejddZdS )	CustomerSchemaTr      r   r
   d   r   N)r   r   r   r   r   r   r   r   r   mobile_numbernameemailZBoolsubscription_statusr   r   r   r   r   r    r!      s    r!   c                   @   s\   e Zd ZejddZejddZejddZejdddZ	ejddd dZ
ejddZd	S )
AdminUserSchemaTr   r   )r   	load_onlyFc                 C   s   | dv S )N)Zsuper_admincontent_adminr   )rr   r   r    <lambda>&   s    zAdminUserSchema.<lambda>r
   N)r   r   r   r   r   r   r   usernamer&   password_hashroler   r   r   r   r   r    r(   !   s    r(   N)Zmarshmallowr   r   r   r   r!   r(   r   r   r   r    <module>   s   
