18 lines
380 B
Go
18 lines
380 B
Go
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"`
|
|
}
|