model

package
v0.0.0-...-07bc221 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID       int    `gorm:"autoIncrement;primaryKey"`
	Username string `gorm:"type:varchar(20);uniqueIndex;not null"`
	Password string `gorm:"type:varchar(128);not null"`
	Email    string `gorm:"type:varchar(128);uniqueIndex"`
	RegTime  int64  `gorm:"bigint(20)"`
	RegIp    string `gorm:"type:varchar(128)"`
	LastTime int64  `gorm:"bigint(20)"`
	LastIp   string `gorm:"type:varchar(128)"`
}

type App

type App struct {
	ID         int    `gorm:"autoIncrement;primaryKey"`
	UserId     int    `gorm:"index"`
	AppId      string `gorm:"type:varchar(20);uniqueIndex"`
	AppName    string `gorm:"type:varchar(128)"`
	AppSecret  string `gorm:"type:varchar(100);uniqueIndex"`
	AppGateway string `gorm:"type:varchar(200)"`
	CreateAt   int64  `gorm:"autoCreateTime"`
}

type OpenId

type OpenId struct {
	ID       int    `gorm:"autoIncrement;primaryKey"`
	UserId   int    `gorm:"index"`
	AppId    string `gorm:"type:varchar(20);index"`
	OpenId   string `gorm:"type:varchar(128);uniqueIndex"`
	CreateAt int64  `gorm:"autoCreateTime"`
}

func (OpenId) TableName

func (OpenId) TableName() string

type UniqueId

type UniqueId struct {
	ID        int    `gorm:"autoIncrement;primaryKey"`
	UserId    int    `gorm:"index"`
	DevUserId int    `gorm:"index"`
	UniqueId  string `gorm:"type:varchar(128);uniqueIndex"`
	CreateAt  int64  `gorm:"autoCreateTime"`
}

func (UniqueId) TableName

func (UniqueId) TableName() string

Jump to

Keyboard shortcuts

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