25 lines
472 B
Go
25 lines
472 B
Go
package entity
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type IncidentRole string
|
|
|
|
const (
|
|
RETROSPECTIVE IncidentRole = "RETROSPECTIVE"
|
|
RESPONDER IncidentRole = "RESPONDER"
|
|
SERVICE_OWNER IncidentRole = "SERVICE_OWNER"
|
|
)
|
|
|
|
type IncidentRoles struct {
|
|
gorm.Model
|
|
IncidentId int
|
|
Role IncidentRole
|
|
AssignedToUserSlackId string
|
|
AssignedByUserSlackId string
|
|
Version int
|
|
}
|
|
|
|
func (IncidentRoles) TableName() string {
|
|
return "incident_roles"
|
|
}
|