models

package
v0.0.0-...-0099cba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID              uuid.UUID      `json:"id" gorm:"primaryKey"`
	CreatedAt       time.Time      `json:"created_at" gorm:"<-:create"`
	UpdatedAt       time.Time      `json:"updated_at"`
	DeletedAt       gorm.DeletedAt `json:"deleted_at" gorm:"index"`
	FirstName       string         `json:"first_name"`
	LastName        *string        `json:"last_name"`
	Email           string         `json:"email"`
	EmailVerifiedAt *time.Time     `json:"email_verified_at"`
	Phone           *string        `json:"phone"`
	PhoneVerifiedAt *time.Time     `json:"phone_verified_at"`
	Password        string         `json:"-"`
}

func (*User) BeforeCreate

func (u *User) BeforeCreate(tx *gorm.DB) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL