Files
spend-sparrow/types/treasure.go
Tim Wundenberg 0792d8e01a
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 4m27s
feat: extract types to seperate files
2025-05-10 23:22:09 +02:00

25 lines
511 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
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"`
}