-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.py
34 lines (29 loc) · 871 Bytes
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Python FastAPI models using Pydantic for the "Functionality for Month and Annual Report for One Person Limited Companies"
from pydantic import BaseModel
class ReportData(BaseModel):
report_id: int
company_name: str
report_type: str
report_year: int
report_month: int
income_statement: IncomeStatement
balance_sheet: BalanceSheet
cash_flow_statement: CashFlowStatement
tax_report: TaxReport
class IncomeStatement(BaseModel):
revenue: float
expenses: float
net_income: float
class BalanceSheet(BaseModel):
assets: float
liabilities: float
equity: float
class CashFlowStatement(BaseModel):
operating_cash_flow: float
investing_cash_flow: float
financing_cash_flow: float
net_cash_flow: float
class TaxReport(BaseModel):
tax_expenses: float
tax_liabilities: float
tax_paid: float