kenken999's picture
fda
0f43f8a
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