kenken999's picture
fda
0f43f8a
raw
history blame
261 Bytes
from dataclasses import dataclass
@dataclass
class Account:
id: int
user_id: int
balance: float
def __init__(self, id: int, user_id: int, balance: float = 0.0):
self.id = id
self.user_id = user_id
self.balance = balance