Files
Hightube/internal/model/room.go

15 lines
402 B
Go

package model
import (
"gorm.io/gorm"
)
// Room represents a user's personal live streaming room.
type Room struct {
gorm.Model
UserID uint `gorm:"uniqueIndex;not null"`
Title string `gorm:"default:'My Live Room'"`
StreamKey string `gorm:"uniqueIndex;not null"` // Secret key for OBS streaming
IsActive bool `gorm:"default:false"` // Whether the stream is currently active
}