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

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"`
}