model

package
v0.0.0-...-4ea7438 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserModel

type UserModel struct {
	ID         int    `gorm:"column:id;type:int(11) auto_increment;primary_key;comment:'主键'" json:"id"`
	UserName   string `gorm:"column:name;type:varchar(100);not null;comment:'用户名'" json:"user_name"`
	Password   string `gorm:"column:name;type:varchar(100);not null;comment:'密码'" json:"password"`
	Sex        int    `gorm:"column:name;type:int(11);not null;default 0;comment:'性别'" json:"sex"`
	CreateTime int    `gorm:"column:name;type:timestamp;not null;comment:'创建时间'" json:"create_time"`
}

func (*UserModel) TableName

func (m *UserModel) TableName() string

Jump to

Keyboard shortcuts

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