models

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtModel

type AtModel struct {
	CreatedAt time.Time  `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;comment:创建时间;" json:"createdAt"`                             // 创建时间
	UpdatedAt time.Time  `gorm:"type:timestamp;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;comment:更新时间;" json:"updatedAt"` // 更新时间
	DeletedAt *time.Time `gorm:"type:timestamp;comment:删除时间;" json:"deletedAt"`
}

AtModel 时间

type ByModel

type ByModel struct {
	CreateBy uint `gorm:"index;comment:'创建者'"`
	UpdateBy uint `gorm:"index;comment:'更新者'"`
}

Jump to

Keyboard shortcuts

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