Messaging/pkg/internal/models/calls.go

22 lines
500 B
Go

package models
import (
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
"github.com/livekit/protocol/livekit"
"time"
)
type Call struct {
cruda.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:"-"`
}