initial auth route

This commit is contained in:
2023-08-15 14:48:55 -03:00
parent a47d9727ad
commit 4d1884f3a4
7 changed files with 166 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
package models
type User struct {
Id uint `gorm:"primary key" json:"id"`
Name string `gorm:"size:40;not null" json:"name"`
Email string `gorm:"size:40;not null;unique" json:"email"`
Password []byte `gorm:"size:100;not null;" json:"-"`
UserType string `gorm:"size:1;not null;default:U" json:"usertype"`
}