gorm_models/models/participant.go

31 lines
973 B
Go
Raw Normal View History

2025-06-16 17:49:27 +10:00
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"
}