model user
This commit is contained in:
parent
0da4a36900
commit
cd6c91fd30
5
database/seeds/user_seeder.go
Normal file
5
database/seeds/user_seeder.go
Normal file
@ -0,0 +1,5 @@
|
||||
package seeds
|
||||
|
||||
func SeedAdmin(db *gorm) {
|
||||
bytes, err :=
|
||||
}
|
||||
17
internal/core/domain/model/user_model.go
Normal file
17
internal/core/domain/model/user_model.go
Normal 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
1
utils/conv/conv.go
Normal file
@ -0,0 +1 @@
|
||||
package conv
|
||||
Loading…
x
Reference in New Issue
Block a user