domain

package
v0.0.0-...-320dba2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseStructModel

type BaseStructModel struct {
	ID        string    `json:"id" gorm:"type:uuid; primary_key"`
	CreatedAt time.Time `json:"created_at"`
	UpdateAt  time.Time `json:"updated_at"`
	DeletedAt time.Time `json:"deleted_at" sql:"index"`
}

func (*BaseStructModel) BeforCreate

func (base *BaseStructModel) BeforCreate(scope *gorm.Scope) error

type User

type User struct {
	BaseStructModel
	Name     string `json:"name" gorm:"type:varchar(255)"`
	Email    string `json:"email" gorm:"type:varchar(255);unique_index"`
	Password string `json:"-" gorm:"type:varchar(255)"`
	TokenId  string `json:"token" gorm:"type:varchar(255);unique_index"`
}

func CreateNewUser

func CreateNewUser() *User

func (*User) Prepare

func (user *User) Prepare() error

Jump to

Keyboard shortcuts

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