22 lines
559 B
Go
22 lines
559 B
Go
package user
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
type User struct {
|
|
Id uint `gorm:"primary_key"`
|
|
CreatedAt time.Time `gorm:"column:created_at"`
|
|
UpdatedAt sql.NullTime `gorm:"column:updated_at"`
|
|
DeletedAt sql.NullTime `gorm:"column:deleted_at"`
|
|
Uuid string `gorm:"column:uuid"`
|
|
Username string `gorm:"column:username"`
|
|
Password string `gorm:"column:password"`
|
|
Email string `gorm:"column:email"`
|
|
Verified int `gorm:"column:verified"`
|
|
}
|
|
|
|
func (User) TableName() string {
|
|
return "users"
|
|
}
|