* TP-52454| created zenduty integration * TP-52454| added migration script for external team table * TP-52454| added extra logs * TP-52454| modified logs * TP-52454|added extra logs * TP-52454| changed post url for zenduty * TP-52454| fixed bugs in zenduty client * TP-52454| created constants for environmental varibales * TP-52454| enabled zenduty if severity is less than or equal to the defined config
25 lines
830 B
Go
25 lines
830 B
Go
package externalTeam
|
|
|
|
import (
|
|
"gorm.io/datatypes"
|
|
"time"
|
|
)
|
|
|
|
type ExternalTeamEntity struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
ExternalTeamID string `gorm:"column:external_team_id"`
|
|
ExternalTeamName string `gorm:"column:external_team_name"`
|
|
Metadata datatypes.JSON `gorm:"column:metadata"`
|
|
ProviderName string `gorm:"column:provider_name"`
|
|
TeamID uint `gorm:"column:team_id"`
|
|
IsActive bool `gorm:"column:is_active"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
CreatedBy string `gorm:"column:created_by"`
|
|
UpdatedBy string `gorm:"column:updated_by"`
|
|
}
|
|
|
|
func (ExternalTeamEntity) TableName() string {
|
|
return "external_team"
|
|
}
|