Add Plan page with day planner
This commit is contained in:
25
backend/database/models/plan.go
Normal file
25
backend/database/models/plan.go
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
|
||||
type PlanMonth struct {
|
||||
Date datatypes.Date `gorm:"primaryKey"`
|
||||
Items datatypes.JSON
|
||||
}
|
||||
Reference in New Issue
Block a user