19 lines
405 B
Go
19 lines
405 B
Go
package severity
|
|
|
|
import (
|
|
"github.com/lib/pq"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type SeverityEntity struct {
|
|
gorm.Model
|
|
Name string `gorm:"column:name"`
|
|
Description string `gorm:"column:description"`
|
|
Sla int `gorm:"column:sla"`
|
|
SlackUserIds pq.StringArray `gorm:"column:slack_user_ids;type:string[]"`
|
|
}
|
|
|
|
func (SeverityEntity) TableName() string {
|
|
return "severity"
|
|
}
|