first commit
This commit is contained in:
		
							
								
								
									
										28
									
								
								app/models/money.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								app/models/money.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| from sqlalchemy import (Column, Integer, | ||||
|         DECIMAL, Text, | ||||
|         VARCHAR, TIMESTAMP, Date) | ||||
| from datetime import datetime, timezone | ||||
| from database import  Base | ||||
|  | ||||
|  | ||||
| class MoneyDelivery(Base): | ||||
|     __tablename__ = 'money_delivery' | ||||
|  | ||||
|     id = Column(Integer, | ||||
|                    primary_key=True, | ||||
|                    autoincrement=True, | ||||
|                    unique=False) | ||||
|  | ||||
|     delivery_id = Column(Integer) | ||||
|     time_added = Column(TIMESTAMP(), default=datetime.utcnow()) | ||||
|     gallons_delivered = Column(DECIMAL(50, 2)) | ||||
|     supplier_price = Column(DECIMAL(50, 2)) | ||||
|     customer_price = Column(DECIMAL(50, 2)) | ||||
|     total_amount_oil = Column(DECIMAL(50, 2)) | ||||
|     total_amount_prime = Column(DECIMAL(50, 2)) | ||||
|     total_amount_same_day = Column(DECIMAL(50, 2)) | ||||
|     total_amount_fee = Column(DECIMAL(50, 2)) | ||||
|     total_amount = Column(DECIMAL(50, 2)) | ||||
|     taxes_paid = Column(DECIMAL(50, 2)) | ||||
|     total_profit = Column(DECIMAL(50, 2)) | ||||
|     total_profit_oil = Column(DECIMAL(50, 2)) | ||||
		Reference in New Issue
	
	Block a user