domain

package
v1.0.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel added in v0.0.7

type BaseModel struct {
	ID        string    `json:"id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at,omitempty"`
}

func (*BaseModel) BeforeCreate added in v0.0.7

func (m *BaseModel) BeforeCreate(tx *gorm.DB) (err error)

func (*BaseModel) IsValid added in v0.0.7

func (m *BaseModel) IsValid() bool

type Event added in v0.1.2

type Event struct {
	BaseModel
	Name       string    `json:"name"`
	EntityID   string    `json:"entityId"`   // Could be HouseholdID or MealID etc.
	EntityType string    `json:"entityType"` // e.g., "household", "meal", "chore"
	StartDate  time.Time `json:"startDate" gorm:"autoUpdateTime:false"`
	EndDate    time.Time `json:"endDate" gorm:"autoUpdateTime:false"`
	AssignedTo string    `json:"assignedTo"` // UserID of the person assigned to this event
}

type Household

type Household struct {
	BaseModel
	Name string `json:"name"`
}

type Meal added in v0.1.2

type Meal struct {
	BaseModel
	Name        string `json:"name"`
	HouseholdID string `json:"householdId"`
}

type Member added in v0.1.2

type Member struct {
	BaseModel
	UserID      string `json:"userId"`
	HouseholdID string `json:"householdId"`
}

type User added in v0.1.2

type User struct {
	BaseModel
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UserData added in v0.1.2

type UserData struct {
	ID                  string              `json:"id"`
	Username            string              `json:"username"`
	FirstName           string              `json:"firstName"`
	LastName            string              `json:"lastName"`
	ProfileImageURL     string              `json:"profileImageUrl"`
	PrimaryEmailAddress string              `json:"primaryEmailAddress"`
	EmailAddresses      *clerk.EmailAddress `json:"emailAddresses"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL