Skip to content

Commit 93ea2b1

Browse files
authored
Merge pull request #43 from acmutd/problem-fields
(fix): add slug to problem model
2 parents 4e07e25 + 6bfea74 commit 93ea2b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

central-service/models/problem.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package models
33
type Problem struct {
44
ID uint `gorm:"primarykey" json:"id"`
55
Name string `gorm:"unique" json:"name"`
6+
Slug string `gorm:"unique" json:"slug"`
67
Description string `json:"description"`
78
Hints string `json:"hints"`
89
Difficulty string `json:"difficulty"`

0 commit comments

Comments
 (0)