21 lines
568 B
Go
21 lines
568 B
Go
package entity
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type TeamEntity struct {
|
|
gorm.Model
|
|
Name string `gorm:"column:name"`
|
|
OncallHandle string `gorm:"column:oncall_handle"`
|
|
SecondaryOncallHandle string `gorm:"column:secondary_oncall_handle"`
|
|
ManagerHandle string `gorm:"column:manager_handle"`
|
|
SecondaryManagerHandle string `gorm:"column:secondary_manager_handle"`
|
|
Active bool `gorm:"column:active"`
|
|
Version int `gorm:"column:version"`
|
|
}
|
|
|
|
func (TeamEntity) TableName() string {
|
|
return "teams"
|
|
}
|