initial working env
This commit is contained in:
17
schemas.py
Normal file
17
schemas.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from pydantic import BaseModel, DirectoryPath
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class DownloadParameters(BaseModel):
|
||||
start_date: datetime
|
||||
end_date: datetime
|
||||
output_dir: DirectoryPath
|
||||
account_name: str
|
||||
account_number: str
|
||||
account_phone: str
|
||||
|
||||
class DatabaseRecord(BaseModel):
|
||||
timestamp: datetime
|
||||
value_kwh: float
|
||||
cost: float
|
||||
tou: int
|
||||
Reference in New Issue
Block a user