16 lines
492 B
Go
16 lines
492 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Account struct {
|
|
ID string `db:"id" json:"id"`
|
|
UserID string `db:"user_id" json:"user_id"`
|
|
Mode string `db:"mode" json:"mode"`
|
|
Name string `db:"name" json:"name"`
|
|
Currency string `db:"currency" json:"currency"`
|
|
LedgerStatus string `db:"ledger_status" json:"ledger_status"`
|
|
CreatedAt time.Time `db:"created_at" json:"created_at"`
|
|
}
|
|
|
|
func (Account) TableName() string { return "veyra_account" }
|