replace id type

This commit is contained in:
kandrusyak
2023-07-18 01:05:42 +03:00
parent 6a386e38cf
commit ec9fbfbbfd
5 changed files with 18 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
package model
import "gorm.io/gorm"
import (
"github.com/google/uuid"
"gorm.io/gorm"
)
type Position struct {
ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primarykey"`
gorm.Model
Name string `json:"name" gorm:"unique;index"`
RightMask int `json:"right_mask"`