package
Version:
v0.0.0-...-03609d5
Opens a new window with list of versions in this module.
Published: Feb 19, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type User struct {
gorm.Model
Username string `gorm:"type:varchar(50);not null;unique;comment:'用户名'" json:"username"`
Password string `gorm:"size:255;not null;comment:'用户密码'" json:"password"`
Nickname string `gorm:"type:varchar(50);comment:'中文名'" json:"nickname"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.