models

package
v0.0.0-...-11559a6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 M

type M struct {
	Id             uint      `gorm:"primaryKey;comment:auto increment id" json:"id"`
	CreatedAt      time.Time `gorm:"comment:create time" json:"createdAt"`
	UpdatedAt      time.Time `gorm:"comment:update time" json:"updatedAt"`
	DeletedAt      time.Time `gorm:"index:idx_deleted_at;comment:soft delete time" json:"deletedAt"`
	ModifiedUserId uint      `gorm:"comment:modified user id" json:"modifiedUserId"`
}

type SysAsset

type SysAsset struct {
	M
	AssetId      string    `gorm:"index:idx_aid,unique;comment:asset id" json:"assetId"`
	Name         string    `gorm:"comment:asset name" json:"name"`
	Type         string    `gorm:"comment:asset type" json:"type"`
	ChildType    string    `gorm:"comment:asset child type" json:"childType"`
	ProjectName  string    `gorm:"comment:asset assign project name" json:"projectName"`
	Origin       string    `gorm:"comment:origin" json:"origin"`
	Model        string    `gorm:"comment:model" json:"model"`
	Value        float64   `gorm:"comment:asset value" json:"value"`
	Unit         string    `gorm:"comment:unit" json:"unit"`
	InDate       time.Time `gorm:"comment:put in date" json:"inDate"`
	OpDate       time.Time `gorm:"comment:op date" json:"opDate"`
	DepYear      int       `gorm:"comment:dep year" json:"depYear"`
	Location     string    `gorm:"comment:asset location info" json:"location"`
	Status       *uint     `gorm:"type:tinyint(1);default:0;comment:asset status" json:"status"`
	Image        string    `gorm:"comment:image url" json:"image"`
	AssignUserId uint      `gorm:"comment:assign user id" json:"assignUserId"`
}

type SysUser

type SysUser struct {
	M
	Username  string    `gorm:"index:idx_username,unique;comment:user login name" json:"username"`
	Password  string    `gorm:"comment:password" json:"password"`
	Mobile    string    `gorm:"comment:mobile number" json:"mobile"`
	Avatar    string    `gorm:"comment:avatar url" json:"avatar"`
	Name      string    `gorm:"comment:name" json:"name"`
	Status    *uint     `gorm:"type:tinyint(1);default:1;comment:status(0: disabled, 1: enable)" json:"status"`
	DeptId    uint      `gorm:"comment:department id" json:"deptId"`
	RoleId    uint      `gorm:"comment:role id" json:"roleId"`
	LastLogin time.Time `gorm:"comment:last login time" json:"lastLogin"`
	Locked    uint      `gorm:"type:tinyint(1);default:0;comment:locked(0: unlock, 1: locked)" json:"locked"`
}

Jump to

Keyboard shortcuts

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