CRUD de contas (corrente/poupança/investimento/cartão) com saldo calculado automaticamente. account_id nullable em transactions. Widget patrimônio no dashboard. Tela /contas. Seletor de conta nas transações manuais. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
18 lines
484 B
Go
18 lines
484 B
Go
package model
|
|
|
|
type Account struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
InitialBalance float64 `json:"initial_balance"`
|
|
Balance float64 `json:"balance"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type AccountInput struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
InitialBalance float64 `json:"initial_balance"`
|
|
}
|