Skip to content
Snippets Groups Projects
Commit 8f3ebd98 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

fix id generation

parent ebda08c5
Branches
No related tags found
No related merge requests found
Pipeline #9113 passed
...@@ -27,7 +27,7 @@ type Cookie struct { ...@@ -27,7 +27,7 @@ type Cookie struct {
} }
type Message struct { type Message struct {
Id uuid.UUID `gorm:"primaryKey"` Id uuid.UUID `gorm:"primaryKey;default:gen_random_uuid()"`
Sent time.Time `gorm:"default:now()"` Sent time.Time `gorm:"default:now()"`
Message string Message string
SchAcc string `gorm:"type:varchar(22)"` SchAcc string `gorm:"type:varchar(22)"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment