Skip to content

Models

domain.account.models

Summary

Define the Account aggregate model shared by the service and storage layers.

Classes

Account

Bases: BaseModel

Account aggregate: banking details plus the owning user.

Attributes:

Name Type Description
name str

Display name of the account.

number str

Account number; empty when unknown.

type str

Account kind, e.g. "bank".

currency str

Currency code the account operates in, e.g. "INR".

owner User

User that owns the account.