model

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 4 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 {
	gorm.Model

	ID   uuid.UUID `gorm:"type:uuid;primary_key"`
	Name string    `gorm:"type:varchar(128);not null;" json:"name"`
}

func (*User) BeforeCreate added in v0.2.0

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

Before first time creation

func (*User) BeforeDelete added in v0.2.0

func (user *User) BeforeDelete(tx *gorm.DB) error

Before delete

func (*User) BeforeUpdate added in v0.2.0

func (user *User) BeforeUpdate(tx *gorm.DB) error

Before update

Jump to

Keyboard shortcuts

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