model

package
v0.0.0-...-491cb66 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 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 UserM

type UserM struct {
	ID        int64     `gorm:"column:id;primary_key"`
	Email     string    `gorm:"column:email"`
	Nickname  string    `gorm:"column:nickname"`
	Username  string    `gorm:"column:username;not null"`
	Password  string    `gorm:"column:password;not null"`
	CreatedAt time.Time `gorm:"column:createdAt"`
	UpdatedAt time.Time `gorm:"column:updatedAt"`
}

UserM user 表结构体映射

func (*UserM) TableName

func (u *UserM) TableName() string

TableName 映射 MySQL 表名

Jump to

Keyboard shortcuts

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