package types import ( "time" "github.com/google/uuid" ) // The TreasureChest is a fictional account. // The money it "holds" distributed across all accounts // // At the time of writing this, linking it to a specific account doesn't really make sense // Imagne a TreasureChest for free time activities, where some money is spend in cash and some other with credit card type TreasureChest struct { Id uuid.UUID ParentId *uuid.UUID `db:"parent_id"` UserId uuid.UUID `db:"user_id"` Name string CurrentBalance int64 `db:"current_balance"` CreatedAt time.Time `db:"created_at"` CreatedBy uuid.UUID `db:"created_by"` UpdatedAt *time.Time `db:"updated_at"` UpdatedBy *uuid.UUID `db:"updated_by"` }