lots of stuff, don't truly remember

This commit is contained in:
Blake Ridgway
2026-05-17 20:39:47 -05:00
parent 178ffb3425
commit dc4fe558b7
35 changed files with 3501 additions and 112 deletions

18
internal/event/model.go Normal file
View File

@@ -0,0 +1,18 @@
package event
import "time"
type Event struct {
ID uint `gorm:"primaryKey" json:"id"`
UserID uint `gorm:"not null;index" json:"user_id"`
Name string `gorm:"not null" json:"name"`
EventDate time.Time `gorm:"not null;index" json:"event_date"`
EventType string `gorm:"not null" json:"event_type"`
Distance float64 `gorm:"default:0" json:"distance"`
Priority string `gorm:"default:'C'" json:"priority"`
Location string `gorm:"default:''" json:"location"`
Notes string `gorm:"default:''" json:"notes"`
URL string `gorm:"default:''" json:"url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}