fix: use char(36) with golang uuid instead of sql uuid type (#78)

resolves #77
This commit is contained in:
Lakhan Samani
2021-12-14 22:57:45 +05:30
committed by GitHub
parent 038a9f0054
commit 85b09dceb7
4 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ import (
)
type Role struct {
ID uuid.UUID `gorm:"type:uuid;"`
ID uuid.UUID `gorm:"primaryKey;type:char(36)"`
Role string `gorm:"unique"`
}