feat: support shared pet care tasks and smooth daily page return
This commit is contained in:
@@ -117,13 +117,13 @@ type Pet struct {
|
||||
|
||||
type CareTask struct {
|
||||
Base
|
||||
UserID string `gorm:"type:uuid;index;not null" json:"user_id"`
|
||||
PetID string `gorm:"type:uuid;index;not null" json:"pet_id"`
|
||||
Title string `gorm:"size:128;not null" json:"title"`
|
||||
Category string `gorm:"size:32;not null" json:"category"`
|
||||
TimeOfDay string `gorm:"size:5;not null" json:"time_of_day"`
|
||||
RepeatRule string `gorm:"size:16;not null;default:daily" json:"repeat_rule"`
|
||||
ReminderEnabled bool `gorm:"not null;default:false" json:"reminder_enabled"`
|
||||
UserID string `gorm:"type:uuid;index;not null" json:"user_id"`
|
||||
PetID *string `gorm:"type:uuid;index" json:"pet_id"` // nil applies to all of the user's pets.
|
||||
Title string `gorm:"size:128;not null" json:"title"`
|
||||
Category string `gorm:"size:32;not null" json:"category"`
|
||||
TimeOfDay string `gorm:"size:5;not null" json:"time_of_day"`
|
||||
RepeatRule string `gorm:"size:16;not null;default:daily" json:"repeat_rule"`
|
||||
ReminderEnabled bool `gorm:"not null;default:false" json:"reminder_enabled"`
|
||||
}
|
||||
|
||||
type TaskCompletion struct {
|
||||
|
||||
Reference in New Issue
Block a user