Messaging/pkg/internal/models/calls.go
LittleSheep 2486b317e3 More channel call operations available
 Prevent two user create call in a channel at the same time
2024-07-17 11:03:35 +08:00

21 lines
445 B
Go

package models
import (
"github.com/livekit/protocol/livekit"
"time"
)
type Call struct {
BaseModel
EndedAt *time.Time `json:"ended_at"`
ExternalID string `json:"external_id"`
FounderID uint `json:"founder_id"`
ChannelID uint `json:"channel_id"`
Founder ChannelMember `json:"founder"`
Channel Channel `json:"channel"`
Participants []*livekit.ParticipantInfo `json:"participants" gorm:"-"`
}