done with routing in async func go

This commit is contained in:
valitovgaziz
2024-08-08 13:23:29 +05:00
parent 69a735e692
commit acc9bb5906
5 changed files with 26 additions and 86 deletions
+5 -5
View File
@@ -3,9 +3,9 @@ package models
import "github.com/google/uuid"
type User struct {
Id uuid.UUID `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
Phone string `json:"phone"`
Id uuid.UUID `json:"id" gorm:"type:uuid;default:uuid_generate_v4;primaryKey;unique;AutoIncrement:false"`
Name string `json:"name" gorm:"type:string"`
Email string `json:"email" gorm:"type:string;index"`
Password string `json:"password" gorm:"type:string;index"`
Phone string `json:"phone" gorm:"type:string;index"`
}