replace id type
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user