models

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoV1

type InfoV1 struct {
	gorm.Model
	Name string `gorm:"unique;column:name"`
	Cate string `gorm:"column:cate"`
}

func (*InfoV1) TableName

func (*InfoV1) TableName() string

type InfoV2

type InfoV2 struct {
	gorm.Model
	Name string `gorm:"unique;column:name"`
	Cate int64  `gorm:"column:cate"`
}

func (*InfoV2) TableName

func (*InfoV2) TableName() string

type InfoV3

type InfoV3 struct {
	gorm.Model
	Name string `gorm:"unique;column:name"`
	Cate int8   `gorm:"column:cate"`
}

func (*InfoV3) TableName

func (*InfoV3) TableName() string

type UserV1

type UserV1 struct {
	gorm.Model
	Username string `gorm:"unique"`
	Nickname string `gorm:"column:nickname"`
	Rank     string `gorm:"column:rank"`
	Score    string `gorm:"column:score"`
}

func (*UserV1) TableName

func (*UserV1) TableName() string

type UserV2

type UserV2 struct {
	gorm.Model
	Username string `gorm:"unique"`
	Nickname string `gorm:"column:nickname"`
	Rank     uint64 `gorm:"column:rank"`
	Score    string `gorm:"column:score"`
}

func (*UserV2) TableName

func (*UserV2) TableName() string

type UserV3

type UserV3 struct {
	gorm.Model
	Username string  `gorm:"unique"`
	Nickname string  `gorm:"column:nickname"`
	Rank     uint64  `gorm:"column:rank"`
	Score    float64 `gorm:"column:score"`
}

func (*UserV3) TableName

func (*UserV3) TableName() string

Jump to

Keyboard shortcuts

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