33 lines
572 B
Go
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
|
|
}
|