model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model
	Account      string `gorm:"size:30;unique"`
	Name         string `gorm:"size:30"`
	Avatar       string `gorm:"default:avatar/0.jpg"`
	Password     string
	Gender       string `gorm:"size:10"`
	Status       string `gorm:"size:20"`
	Level        string `gorm:"size:20"`
	Birthday     string `gorm:"size:10"`
	Contact      string
	Introduction string `gorm:"size:1000"`
}

Jump to

Keyboard shortcuts

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