added migrate

This commit is contained in:
ben
2022-10-25 12:09:40 +01:00
parent 3552443f99
commit e88b18a417
7 changed files with 241 additions and 59 deletions
+21 -9
View File
@@ -18,20 +18,19 @@ class createLnurldevice(BaseModel):
device: str
profit: float
amount: int
amount1: int
amount2: int
amount3: int
amount4: int
pin: int
profit1: float
amount1: int
pin1: int
profit2: float
amount2: int
pin2: int
profit3: float
amount3: int
pin3: int
profit4: float
amount4: int
pin4: int
time: int
time1: int
time2: int
time3: int
time4: int
class lnurldevices(BaseModel):
@@ -43,6 +42,19 @@ class lnurldevices(BaseModel):
device: str
profit: float
amount: int
pin: int
profit1: float
amount1: int
pin1: int
profit2: float
amount2: int
pin2: int
profit3: float
amount3: int
pin3: int
profit4: float
amount4: int
pin4: int
timestamp: str
def from_row(cls, row: Row) -> "lnurldevices":