entity

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameTiku = "tiku"

Variables

This section is empty.

Functions

This section is empty.

Types

type Tiku

type Tiku struct {
	ID           int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Question     string `gorm:"column:question" json:"question"`
	Type         int32  `gorm:"column:type" json:"type"`
	Options      string `gorm:"column:options" json:"options"`
	Answer       string `gorm:"column:answer" json:"answer"`
	Plat         int32  `gorm:"column:plat" json:"plat"`
	QuestionHash string `gorm:"column:question_hash;index:question_hash_idx,priority:1;comment:只有问题的短hash" json:"question_hash"` // 只有问题的短hash
	Hash         string `gorm:"column:hash;uniqueIndex:hash_index,priority:1;comment:整个实体的hash,防止重复" json:"hash"`                // 整个实体的hash,防止重复
	Source       int32  `gorm:"column:source;comment:0采集1自建2文件类" json:"source"`                                                  // 0采集1自建2文件类
	Extra        string `gorm:"column:extra;comment:扩展字段,多用于tag" json:"extra"`                                                   // 扩展字段,多用于tag
}

Tiku mapped from table <tiku>

func (*Tiku) TableName

func (*Tiku) TableName() string

TableName Tiku's table name

Jump to

Keyboard shortcuts

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