Files
houston-be/model/externalTeam/model.go
Vijay Joshi fd2a977e82 INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents (#456)
* INFRA-3705 : Creation of RCA ticket for sev-0 non-escalated non-CX incidents

* INFRA-3705 : Self review

* INFRA-3705 : Fix tests:

* INFRA-3705 : UT's and minor constant changes

* INFRA-3705 : Add migration script
2024-09-17 10:01:07 +05:30

25 lines
867 B
Go

package externalTeam
import (
"gorm.io/datatypes"
"time"
)
type ExternalTeamDTO struct {
ID uint `json:"id,omitempty"`
ExternalTeamID string `json:"external_team_id,omitempty"`
ExternalTeamName string `json:"external_team_name,omitempty"`
Metadata datatypes.JSON `json:"metadata,omitempty"`
ProviderName string `json:"provider_name,omitempty"`
TeamID uint `json:"team_id,omitempty"`
IsActive bool `json:"is_active,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
UpdatedBy string `json:"updated_by,omitempty"`
}
type ExternalTeamMetadata struct {
ServiceId string `json:"service_id"`
}