model user

This commit is contained in:
monsky 2025-05-31 02:38:40 +00:00
parent 0da4a36900
commit cd6c91fd30
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,5 @@
package seeds
func SeedAdmin(db *gorm) {
bytes, err :=
}

View File

@ -0,0 +1,17 @@
package model
import (
"time"
"gorm.io/gorm"
)
type User struct {
ID int64 `gorm:"id,primaryKey"`
Name string `gorm:"name"`
Email string `gorm:"email"`
Password string `gorm:"password"`
CreatedAt time.Time `gorm:"created_at"`
UpdatedAt *time.Time `gorm:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index"`
}

1
utils/conv/conv.go Normal file
View File

@ -0,0 +1 @@
package conv