27 lines
465 B
Go
27 lines
465 B
Go
package entity
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type EntityType string
|
|
|
|
const (
|
|
TEAM EntityType = "TEAM"
|
|
SEVERITY EntityType = "SEVERITY"
|
|
)
|
|
|
|
type TeamsSeverityUsersMapping struct {
|
|
gorm.Model
|
|
EntityType EntityType
|
|
EntityId int
|
|
UsersId int
|
|
DefaultAddInIncidents bool
|
|
teamRole string
|
|
Version int
|
|
}
|
|
|
|
func (TeamsSeverityUsersMapping) TableName() string {
|
|
return "teams_severity_user_mapping"
|
|
}
|