update gateway

This commit is contained in:
kandrusyak
2023-07-18 02:39:57 +03:00
parent 723aa351df
commit c40dba5dac
4 changed files with 9 additions and 2 deletions

View File

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