a
    }h                     @   s   d dl mZ d dlmZ 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dS )    )User)models)timezone)TransactionPaymentType)RestrictedFileFieldc                   @   s   e Zd ZejejdZeje	ej
ddZejddddZejddddZejddddZejddddZejddddZejddddZejddddZejddddZejddddZejddddZejddddZdS )	ExchangeRatedefaultT	on_deletenulld   
max_lengthr   blankFr	   r   r   N)__name__
__module____qualname__r   DateTimeFieldr   nowcreate_time
ForeignKeydjango_userSET_NULLcreator	CharFieldnameZbest_buyZ	best_sellZ
day_changeZ	day_closeZday_highZday_lowZday_openBooleanField	is_closedlatestmark r"   r"   CC:\Users\Administrator\Downloads\futplus_django\financial\models.pyr      s   r   c                   @   s   e Zd ZejejdZeje	ej
ddZejejdZejdddZejdedddZejdej
ddZejddddZejd	ddd
Zejd	ddd
Zejd	dZejd	dZejdej
ddZejdej
ddZedddg dddZejddZdS )Transactionr   Tr
   )r   r      )r   choicesr   r   zfinancial.Cashierr   r   r   zfinancial.AccountingHeadingszfinancial.CostCenterzfactors/)zapplication/pdfz	video/mp4z
audio/mpegz
image/jpegz	image/pngz	image/jpgi  P )	upload_tor   r   content_typesZmax_upload_sizeFN) r   r   r   r   r   r   r   r   r   r   r   r   Ztransaction_date	TextFielddescriptionr   r   Zpayment_typeZcashierZbeneficiaryIntegerFieldpaymentZreceipt
FloatFieldZusdt_paymentZusdt_receiptZaccounting_headingsZcost_centerr   Zfactor_imager   Zarchivedr"   r"   r"   r#   r$      s*   r$   c                   @   s8   e Zd ZejejdZejddddZ	ejde
dZdS )Cashierr   r%   Tr   )r   r&   N)r   r   r   r   r   r   r   r   r   r   r   currencyr"   r"   r"   r#   r.   1   s   r.   c                   @   s*   e Zd ZejejdZejddddZ	dS )AccountingHeadingsr   r%   Tr   N
r   r   r   r   r   r   r   r   r   r   r"   r"   r"   r#   r0   7   s   r0   c                   @   s*   e Zd ZejejdZejddddZ	dS )
CostCenterr   r%   Tr   Nr1   r"   r"   r"   r#   r2   <   s   r2   N)django.contrib.auth.modelsr   r   	django.dbr   django.utilsr   Zfinancial.constsr   Zutils.model_fieldsr   Modelr   r$   r.   r0   r2   r"   r"   r"   r#   <module>   s   