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
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 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"`
}
Click to show internal directories.
Click to hide internal directories.