Files
dash/backend/database/models/plan.go
Martin Pander 8addda35ea V2
2023-12-09 19:34:45 +01:00

33 lines
572 B
Go

package models
import (
"gorm.io/datatypes"
)
type PlanDay struct {
Date datatypes.Date `gorm:"primaryKey"`
Morning datatypes.JSON
Midday datatypes.JSON
Afternoon datatypes.JSON
Evening datatypes.JSON
Pleasant datatypes.JSON
Reminders datatypes.JSON
}
type PlanWeek struct {
Date datatypes.Date `gorm:"primaryKey"`
Items datatypes.JSON
// Items []PlanWeekItem
}
// type PlanWeekItem struct {
// Item string
// NumTodo int32
// NumDone int32
// }
type PlanMonth struct {
Date datatypes.Date `gorm:"primaryKey"`
Items datatypes.JSON
}