Spaces:
Running
on
Zero
Running
on
Zero
File size: 317 Bytes
df50319 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from dataclasses import dataclass
@dataclass
class Transaction:
id: int
account_id: int
amount: float
type: str
def __init__(self, id: int, account_id: int, amount: float, type: str):
self.id = id
self.account_id = account_id
self.amount = amount
self.type = type |