entity

package
v0.0.0-...-9c0293a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.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
	UserID       uint64 `gorm:" uniqueIndex;bigint(64);not null;comment:'全局自增唯一ID'"`
	UserName     string `gorm:" type:varchar(128);index;not null;default:Douglas;comment:'用户名,登录使用'"`
	NikeName     string `gorm:" type:varchar(128);not null;default:Douglas;comment:'昵称'"`
	Avatar       string `gorm:" type:varchar(128);comment:'头像'"`
	Gender       uint8  `gorm:" type:bigint(4);default:1;comment:'性别,0,男;1,女;2,未知;'"`
	DistrictCode uint64 `gorm:" type:bigint(64);default:1;comment:'地区码,留作快速查找'"`
	Country      string `gorm:" type:varchar(128);default:China;comment:'国家'"`
	Province     string `gorm:" type:varchar(128);default:Shanghai;comment:'省份'"`
	City         string `gorm:" type:varchar(128);default:Shanghai;comment:'城市'"`
	Region       string `gorm:" type:varchar(128);default:Xuhui;comment:'地区'"`
	Email        string `gorm:" type:varchar(128);comment:'电子邮件'"`
	Mobile       string `gorm:" type:varchar(20);comment:'手机号'"`
	Age          int8   `gorm:" type:bigint(8);default:14;comment:'年龄'"`
	PassWd       string `gorm:" type:varchar(64);comment:'密码'"`
}

type UserCategory

type UserCategory struct {
	*gorm.Model
	UserID   uint64 `gorm:" type:bigint(64);comment:'UserID'"`
	Category string `gorm:" type:bigint(10);default:0;comment:'用户分类;0,普通用户'"`
}

type UserRelation

type UserRelation struct {
	*gorm.Model
	UserID     uint64 `gorm:" type:bigint(64);comment:'UserID'"`
	ForkUserID uint64 `gorm:" type:bigint(64);comment:'关注的UserID'"`
}

type UserTag

type UserTag struct {
	*gorm.Model
	UserID uint64 `gorm:" type:bigint(64);comment:'UserID'"`
	Tag    string `gorm:" type:varchar(20);not null;comment:'用户标签'"`
}

Jump to

Keyboard shortcuts

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