Skip to content

Commit

Permalink
Add index and unique constrain in lobby entity
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoSchw committed May 15, 2024
1 parent ddfb386 commit c4c9333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lobby/lobby_entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

type LobbyEntity struct {
LiveStreamId uuid.UUID `json:"streamId"`
LiveStreamId uuid.UUID `json:"streamId" gorm:"not null;index;unique;"`
UUID uuid.UUID `json:"-"`
Space string
IsRunning bool `json:"isLobbyRunning"`
Expand Down

0 comments on commit c4c9333

Please sign in to comment.