1 parent 4094cdd commit 4a989a0Copy full SHA for 4a989a0
1 file changed
api/pkg/entities/discord.go
@@ -11,7 +11,7 @@ type Discord struct {
11
ID uuid.UUID `json:"id" gorm:"primaryKey;type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb"`
12
UserID UserID `json:"user_id" gorm:"index" example:"WB7DRDWrJZRGbYrv2CKGkqbzvqdC"`
13
Name string `json:"name" example:"Game Server"`
14
- ServerID string `json:"server_id" gorm:"uniqueIndex" example:"1095778291488653372"`
+ ServerID string `json:"server_id" gorm:"uniqueIndex:idx_discords_server_id" example:"1095778291488653372"`
15
IncomingChannelID string `json:"incoming_channel_id" example:"1095780203256627291"`
16
CreatedAt time.Time `json:"created_at" example:"2022-06-05T14:26:02.302718+03:00"`
17
UpdatedAt time.Time `json:"updated_at" example:"2022-06-05T14:26:10.303278+03:00"`
0 commit comments