Documentation ¶ Index ¶ type Component type Incident type IncidentLog type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Component ¶ type Component struct { gorm.Model Name string Description string Incidents []*Incident `gorm:"many2many:incident_components;constraint:OnDelete:CASCADE;"` } type Incident ¶ type Incident struct { gorm.Model Name string Description string Severity string Components []*Component `gorm:"many2many:incident_components;"` // Metadata []IncidentMetadata `gorm:"constraint:OnDelete:CASCADE;"` History []IncidentLog `gorm:"constraint:OnDelete:CASCADE;"` } type IncidentLog ¶ type IncidentLog struct { gorm.Model IncidentID uint Status string Message string } type User ¶ type User struct { gorm.Model Email string `gorm:"uniqueIndex"` // Password is the hashed password of the user. Password string Role string FirstName string LastName string } Source Files ¶ View all Source files component_model.go incident_model.go user_model.go Click to show internal directories. Click to hide internal directories.