replace id type

This commit is contained in:
kandrusyak
2023-07-18 01:16:04 +03:00
parent b74291f449
commit 03cb8c3e38
4 changed files with 26 additions and 20 deletions

View File

@@ -1,9 +1,13 @@
package model
import "gorm.io/gorm"
import (
"github.com/google/uuid"
"gorm.io/gorm"
)
type (
User struct {
ID uuid.UUID
gorm.Model
UserName string `json:"user_name" gorm:"unique"`
Password string `json:"password,omitempty"`