After Finish User Register and Login Service via MVC arch

This commit is contained in:
2025-07-19 23:55:25 +08:00
parent 56c625ee6b
commit edd693200c
12 changed files with 168 additions and 19 deletions

11
models/user.go Normal file
View File

@@ -0,0 +1,11 @@
package models
import (
"gorm.io/gorm"
)
type User struct {
gorm.Model
Username string `grom:"unique"`
Password string `grom:"size:255" gorm:"not null"`
}