2024-04-06 17:08:01 +08:00
|
|
|
package models
|
|
|
|
|
2024-07-17 11:03:35 +08:00
|
|
|
import (
|
2024-11-02 13:40:37 +08:00
|
|
|
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
|
2024-09-11 23:58:02 +08:00
|
|
|
"github.com/livekit/protocol/livekit"
|
2024-11-02 13:40:37 +08:00
|
|
|
"time"
|
2024-07-17 11:03:35 +08:00
|
|
|
)
|
2024-04-06 17:08:01 +08:00
|
|
|
|
|
|
|
type Call struct {
|
2024-11-02 13:40:37 +08:00
|
|
|
cruda.BaseModel
|
2024-04-06 17:08:01 +08:00
|
|
|
|
2024-04-27 00:04:01 +08:00
|
|
|
EndedAt *time.Time `json:"ended_at"`
|
2024-04-06 17:08:01 +08:00
|
|
|
|
|
|
|
ExternalID string `json:"external_id"`
|
|
|
|
FounderID uint `json:"founder_id"`
|
|
|
|
ChannelID uint `json:"channel_id"`
|
|
|
|
Founder ChannelMember `json:"founder"`
|
|
|
|
Channel Channel `json:"channel"`
|
2024-07-17 11:03:35 +08:00
|
|
|
|
|
|
|
Participants []*livekit.ParticipantInfo `json:"participants" gorm:"-"`
|
2024-04-06 17:08:01 +08:00
|
|
|
}
|