Skip to content

Commit 7eb5553

Browse files
committed
fix bug constrain not found on postgres
Signed-off-by: freedisch <freeproduc@gmail.com>
1 parent 8ccd459 commit 7eb5553

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

havril/pkg/models/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type User struct {
1717
TokenHash string `gorm:"uniqueIndex"`
1818
TokenPrefix string
1919
TokenExpiresAt *time.Time
20-
RefreshTokenHash string
20+
RefreshTokenHash string `gorm:"uniqueIndex"`
2121
RefreshTokenPrefix string
2222
RefreshTokenExpiresAt *time.Time
2323
McpTokenHash string

0 commit comments

Comments
 (0)