perf: 提升后端高并发承载能力
This commit is contained in:
@@ -10,5 +10,5 @@ type Room struct {
|
||||
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
|
||||
IsActive bool `gorm:"index;default:false"` // Whether the stream is currently active
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user