* removed the deleted_at column and removed one extra space in the resolved,duplicated messages * changed rca input entity stucture * changes text in tests of rca service
22 lines
649 B
Go
22 lines
649 B
Go
package rcaInput
|
|
|
|
import (
|
|
"github.com/lib/pq"
|
|
"time"
|
|
)
|
|
|
|
type RcaInputEntity struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
IncidentID uint `gorm:"column:incident_id;index"`
|
|
DocumentType string `gorm:"column:document_type"`
|
|
IdentifierKeys pq.StringArray `gorm:"column:identifier_keys;type:text[]"`
|
|
ProviderName string `gorm:"column:provider_name"`
|
|
IsActive bool `gorm:"column:is_active;default:true"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
|
}
|
|
|
|
func (RcaInputEntity) TableName() string {
|
|
return "rca_input"
|
|
}
|