package models import ( "time" "gorm.io/gorm" ) type DBParticipant struct { gorm.Model Address *string Attributes *string `gorm:"type:json"` ConnectedTime *time.Time `gorm:"index"` ConversationId string `gorm:"foreignKey;index"` EndTime *time.Time `gorm:"index"` ExternalContactId *string ExternalContactInitialDivisionId *string Id string `gorm:"primaryKey;index"` MediaRoles *string `gorm:"type:json"` Name *string `gorm:"index"` Purpose *string `gorm:"index"` QueueId *string Wrapup *string `gorm:"type:json"` WrapupExpected *bool WrapupRequired *bool } func (DBParticipant) TableName() string { return "gc_participants" }