model

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeviceSecretDisable = iota // 不可用
	DeviceSecretEnable         // 可用
)

Variables

This section is empty.

Functions

func Tables

func Tables() (t []interface{})

Types

type DeviceSecret added in v0.1.3

type DeviceSecret struct {
	Pk
	Username string `orm:"column(username);unique"`
	Password string `orm:"column(password)"`
	TableChangeInfo
}

type Pk

type Pk struct {
	// ID
	Id int `orm:"pk;auto;column(id)"`
}

type TableChangeInfo

type TableChangeInfo struct {
	// 状态
	Status int `orm:"column(status)"`
	// 创建时间
	CreateTime time.Time `orm:"auto_now_add;type(datetime);column(ctime)"`
	// 修改时间
	UpdateTime time.Time `orm:"auto_now;type(datetime);column(mtime)"`
}

type TableInfo

type TableInfo struct {
	// 创建时间
	CreateTime time.Time `orm:"auto_now_add;type(datetime);column(ctime)"`
}

Jump to

Keyboard shortcuts

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