o
    i                     @   sP   d dl mZ d dlmZmZ d dlmZ G dd dejZG dd dejZ	dS )	    )models)SubscriptionPlanDeviceOSType)FinancialProfilec                   @   s   e Zd Ze ZejddddZe Z	e Z
e Ze Ze ZejeejddZejeejdddddZejeejd	dZdS )
SubscriptionOrder T)defaultblanknull"subscriptionplan_subscriptionorder	on_deleterelated_namedeviceostype_subscriptionorderN)r   r   r   r
   r	   "financialprofile_subscriptionorder)__name__
__module____qualname__r   
FloatFieldprice	TextFieldcurrencyDateTimeField	startDateendDateBooleanField	isExpiredcreatedDateupdatedDate
ForeignKeyr   CASCADEsubscriptionPlanIdr   deviceOSTypeIdr   financialProfileId r$   r$   `/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/mama_care_api/subscription/models.pyr   	   s4    
r   c                   @   sf   e Zd Ze Ze Ze Ze Z	e Z
e Ze Ze Ze ZejeejddZdS )SubscriptionTransaction(subscriptionrder_subscriptiontransactionr   N)r   r   r   r   r   r   r   r   	productIdtransactionIdpurchaseDateexpirationDaterevocationDater   r   r   OneToOneFieldr   r    subscriptionOrderIdr$   r$   r$   r%   r&   &   s    
r&   N)
	django.dbr   basic.modelsr   r   user_profile.modelsr   Modelr   r&   r$   r$   r$   r%   <module>   s
    