This commit is contained in:
Joe
2026-01-16 15:49:34 +08:00
commit 550d3e1f42
380 changed files with 62024 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package models
import (
"github.com/goravel/framework/database/orm"
)
type Dictionary struct {
orm.Model
Type string `gorm:"index;not null;size:50;comment:字典类型"`
Label string `gorm:"not null;size:50;comment:字典标签"`
Value string `gorm:"not null;size:100;comment:字典值"`
TranslationKey string `gorm:"size:255;comment:多语言Key"`
Description string `gorm:"size:255;comment:字典描述"`
Status uint8 `gorm:"default:1;comment:状态 1:启用 0:禁用"`
Sort int `gorm:"default:0;comment:排序"`
Remark string `gorm:"size:500;comment:备注"`
}