db

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 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 AutoModelBase

type AutoModelBase struct {
	ID          uint           `gorm:"primaryKey;autoIncrement"`
	CreatedTime int64          `gorm:"autoCreateTime"`
	UpdatedTime int64          `gorm:"autoCreateTime;autoUpdateTime"`
	DeletedTime gorm.DeletedAt `gorm:"index"`
}

type ModelBase

type ModelBase struct {
	ID                    string `pg:",pk" json:"id"`                          //id
	UpdateTime            int64  `json:"updateTime"`                           //更新时间
	CreateTime            int64  `json:"createTime"`                           //创建时间
	OptimisticLockVersion int64  `pg:",use_zero" json:"optimisticLockVersion"` //default 0 ,not null
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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