Messaging/pkg/internal/models/calls.go

22 lines
500 B
Go
Raw Permalink Normal View History

2024-04-06 09:08:01 +00:00
package models
import (
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
2024-09-11 15:58:02 +00:00
"github.com/livekit/protocol/livekit"
"time"
)
2024-04-06 09:08:01 +00:00
type Call struct {
cruda.BaseModel
2024-04-06 09:08:01 +00:00
EndedAt *time.Time `json:"ended_at"`
2024-04-06 09:08:01 +00:00
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:"-"`
2024-04-06 09:08:01 +00:00
}