20 lines
297 B
Go
20 lines
297 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
type TrackingCategory struct {
|
|
Name string `gorm:"primaryKey"`
|
|
Type string
|
|
Items datatypes.JSON
|
|
}
|
|
|
|
type TrackingItem struct {
|
|
Date time.Time `gorm:"primaryKey"`
|
|
Type string `gorm:"primaryKey"`
|
|
Value string `json:"value"`
|
|
}
|