From 4927bf632b4d0500b4ac1ead5d36ababe0d5d629 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com>
Date: Thu, 11 Nov 2021 13:11:16 +0100
Subject: [PATCH] fix id generation

---
 db/data.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/data.go b/db/data.go
index ab91dc7..8385daa 100644
--- a/db/data.go
+++ b/db/data.go
@@ -27,7 +27,7 @@ type Cookie 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()"`
 	Message string
 	SchAcc  string          `gorm:"type:varchar(22)"`
-- 
GitLab