Files
houston-be/entity/teams.go
Shubham Kirve b974cb6bf3 TP-0000 | Initialize houston repo (#1)
* TP-0000 | intialize houston repo

* TP-0000 | intialize houston repo
2023-03-29 00:01:17 +05:30

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"
}