* TP-38709 | Merging the changes to master on the logfix * TP-48512 | Added button element for RCA section and implemented fill rca details * TP-48512 | Small fixes * TP-48512 | adding unit tests * TP-48512 | added unit tests * TP-48512 | updated color code for rca card * TP-48512 | Removed duplicate interface * TP-48512 | Added one more unit test * TP-48512 | added comments for jira link validation and update * TP-48512 | Merging the changes to master on the logfix # Conflicts: # cmd/app/handler/slack_handler.go * TP-48512 | Added button element for RCA section and implemented fill rca details # Conflicts: # common/util/common_util.go # common/util/constant.go # internal/processor/action/incident_resolve_action.go # internal/processor/action/incident_update_jira-links_action.go # internal/processor/action/incident_update_resolution_text_action.go # internal/processor/action/view/incident_resolution_text.go # internal/processor/action/view/incident_section.go # service/slack/slack_service.go * TP-48512 | Small fixes * TP-48512 | adding unit tests * TP-48512 | added unit tests # Conflicts: # Makefile # service/incident/incident_service_v2_interface.go * TP-48512 | updated color code for rca card * TP-48512 | Removed duplicate interface * TP-48512 | Added one more unit test * TP-48512 | added comments for jira link validation and update * TP-48512 | Fixed merge conflicts * TP-48512 | Fixed merge conflicts * TP-48512 | Fixed merge conflicts * TP-48512 | Added sql migration script for adding tags * TP-48512 | Updated sql migration script for adding tags * TP-48512 | Fixed merge conflicts and updated tags in sql migration script
39 lines
847 B
Go
39 lines
847 B
Go
package tag
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Type string
|
|
|
|
const (
|
|
SingleValue Type = "single_value"
|
|
MultiValue = "multi_value"
|
|
FreeText = "free_text"
|
|
)
|
|
|
|
type TagEntity struct {
|
|
gorm.Model
|
|
Name string `gorm:"column:name"`
|
|
Label string `gorm:"column:label"`
|
|
PlaceHolder string `gorm:"column:place_holder"`
|
|
ActionId string `gorm:"column:action_id"`
|
|
Type Type `gorm:"column:type"`
|
|
Optional bool `gorm:"column:optional"`
|
|
Active bool `gorm:"column:active"`
|
|
DisplayOrder int8 `gorm:"column:display_order"`
|
|
}
|
|
|
|
func (TagEntity) TableName() string {
|
|
return "tag"
|
|
}
|
|
|
|
type TagValueEntity struct {
|
|
gorm.Model
|
|
TagId uint `gorm:"column:tag_id"`
|
|
Value string `gorm:"column:value"`
|
|
Active bool `gorm:"column:active"`
|
|
}
|
|
|
|
func (TagValueEntity) TableName() string {
|
|
return "tag_value"
|
|
}
|