Update git remote URL from git.threefold.info to git.ourworld.tf
This commit is contained in:
@@ -1,16 +1,27 @@
|
||||
module finance
|
||||
|
||||
import base
|
||||
import freeflowuniverse.herolib.hero.models.core
|
||||
|
||||
// Account represents a financial account for tracking balances and transactions
|
||||
// Supports multiple account types (checking, savings, investment, etc.)
|
||||
pub struct Account {
|
||||
base.Base
|
||||
core.Base
|
||||
pub mut:
|
||||
name string // internal name of the account for the user
|
||||
user_id u32 // user id of the owner of the account
|
||||
description string // optional description of the account
|
||||
ledger string // describes the ledger/blockchain where the account is located e.g. "ethereum", "bitcoin" or other institutions
|
||||
address string // address of the account on the blockchain
|
||||
pubkey string
|
||||
assets []Asset
|
||||
name string // User-friendly account name
|
||||
account_type AccountType
|
||||
balance f64 // Current balance in the account's currency
|
||||
currency string // Currency code (USD, EUR, etc.)
|
||||
description string // Optional description of the account
|
||||
is_active bool // Whether the account is currently active
|
||||
}
|
||||
|
||||
// AccountType defines the different types of financial accounts
|
||||
pub enum AccountType {
|
||||
checking
|
||||
savings
|
||||
investment
|
||||
credit
|
||||
loan
|
||||
crypto
|
||||
other
|
||||
}
|
||||
|
Reference in New Issue
Block a user