Documentation ¶
Overview ¶
Package model houses the structs that are persisted in the database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { ID int64 `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time UserID int64 Timestamp time.Time Notes string Tags []EventTag User *User }
Event represents an event that was recorded in datawell, which are owned by a single user.
type EventTag ¶
type EventTag struct { EventID int64 `gorm:"primary_key"` TagID int64 `gorm:"primary_key"` Number float64 Event *Event Tag *Tag }
EventTag represents a tag that was added to an event, optionally with a number.
Click to show internal directories.
Click to hide internal directories.