db

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 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
bun
pgd
gdao Module
gmodel Module

Jump to

Keyboard shortcuts

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