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

fix id generation

parent 8f3ebd98
No related branches found
No related tags found
No related merge requests found
Pipeline #9114 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;default:gen_random_uuid()"` Id uuid.UUID `gorm:"type:uuid;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