package types import ( "time" "github.com/google/uuid" ) // The TreasureChest is a fictional account. // The money it "holds" is actually in the linked Account type TreasureChest struct { Id uuid.UUID UserId uuid.UUID `db:"user_id"` AccountId uuid.UUID `db:"account_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"` }