Reorganized repository into backend and frontend directories

This commit is contained in:
2026-03-16 15:56:04 +08:00
parent c84dd6ea36
commit 530b5383ef
14 changed files with 50 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
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
}

View File

@@ -0,0 +1,12 @@
package model
import (
"gorm.io/gorm"
)
// User represents a registered user in the system.
type User struct {
gorm.Model
Username string `gorm:"uniqueIndex;not null"`
Password string `gorm:"not null"` // Hashed password
}