Spaces:
Sleeping
Sleeping
from dataclasses import 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 |