kenken999's picture
test
df50319
raw
history blame
317 Bytes
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