30 lines
1015 B
Go
30 lines
1015 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type DBParticipant struct {
|
|
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
|
|
|
|
Sessions []DBSession `gorm:"foreignKey:ParticipantId;references:Id"`
|
|
}
|
|
|
|
func (DBParticipant) TableName() string {
|
|
return "gc_participants"
|
|
}
|