Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 1m0s
26 lines
552 B
Go
26 lines
552 B
Go
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
|
|
ParentId uuid.UUID `db:"parent_id"`
|
|
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"`
|
|
}
|