models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 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 Base

type Base struct {
	ID        uuid.UUID  `json:"id" gorm:"type:varchar(36);primarykey"`
	CreatedAt time.Time  `json:"-" gorm:"type:datetime"`
	UpdatedAt time.Time  `json:"-" gorm:"type:datetime"`
	DeletedAt *time.Time `json:"deletedAt" sql:"index"`
}

func (*Base) BeforeCreate

func (b *Base) BeforeCreate(tx *gorm.DB) (err error)

Jump to

Keyboard shortcuts

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