model

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 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 Dict

type Dict struct {
	Id      int    `gorm:"primaryKey"`
	Name    string `gorm:"comment:名称"`
	Group   int    `gorm:"comment:类型" gorm:"uniqueIndex:idx_group_key"`
	Key     string `gorm:"comment:键" gorm:"uniqueIndex:idx_group_key"`
	Value   string `gorm:"comment:值"`
	Comment string `gorm:"comment:注释"`
}

type Enum

type Enum struct {
	ID      int    `gorm:"primaryKey"`
	Name    string `gorm:"comment:名称"`
	Group   int    `gorm:"comment:枚举组" gorm:"uniqueIndex:idx_group_index"`
	Index   int    `gorm:"comment:索引" gorm:"uniqueIndex:idx_group_index"`
	Value   string `gorm:"comment:值" `
	Comment string `gorm:"comment:注释"`
}

type EnumItem

type EnumItem struct {
	Group   int    `gorm:"comment:枚举类型"`
	Index   int    `gorm:"comment:索引"`
	Comment string `gorm:"comment:注释"`
}

type PostgresEnum

type PostgresEnum struct {
	ID    int `gorm:"primaryKey"`
	Enums datatypes.StringArray
}

Jump to

Keyboard shortcuts

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