Files
spend-sparrow/types/treasure_chest.go
Tim Wundenberg d5a984e312
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 1m0s
feat(treasurechest): #64 implement hirarchical treasure chests
2025-05-12 23:37:47 +02:00

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"`
}