models

package
Version: v0.0.0-...-40d3858 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 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
	Uuid     string `gorm:"TYPE:VARCHAR(36);UNIQUE_INDEX;NOT NULL"`
	Mobile   string `gorm:"TYPE:VARCHAR(255);"`
	Password string `gorm:"TYPE:VARCHAR(255);"`
	Username string `gorm:"TYPE:VARCHAR(255);"`
	Email    string `gorm:"TYPE:VARCHAR(255);"`
	Token    string `gorm:"TYPE:VARCHAR(255);"`
}

type WechatMappUser

type WechatMappUser struct {
	gorm.Model
	UserID    uint
	User      User   `gorm:"FOREIGNKEY:ID;ASSOCIATION_FOREIGNKEY:UserID"`
	Nickname  string `gorm:"TYPE:VARCHAR(255);"`
	Gender    string `gorm:"TYPE:VARCHAR(255);"`
	City      string `gorm:"TYPE:VARCHAR(255);"`
	Country   string `gorm:"TYPE:VARCHAR(255);"`
	Province  string `gorm:"TYPE:VARCHAR(255);"`
	AvatarUrl string `gorm:"TYPE:VARCHAR(255);"`
	OpenId    string `gorm:"TYPE:VARCHAR(255);"`
	UnionId   string `gorm:"TYPE:VARCHAR(255);"`
	AppID     string `gorm:"TYPE:VARCHAR(255);"`
}

Source Files

Jump to

Keyboard shortcuts

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