Bladeren bron

update schema

lxg 4 jaren geleden
bovenliggende
commit
68daaa5a8a
1 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 5 4
      orm/schema/schema.go

+ 5 - 4
orm/schema/schema.go

@@ -35,6 +35,7 @@ type (
 		Type     string   `json:"type"`
 		Unique   bool     `json:"unique"`
 		Required []string `json:"required"`
+		Regular  string   `json:"regular"`
 	}
 
 	enumItem struct {
@@ -52,14 +53,14 @@ type (
 
 	Schema struct {
 		Id       uint64 `json:"id" gorm:"primary_key"`
-		Module   string `json:"module_name" gorm:"column:module_name;type:varchar(60)"`
-		Table    string `json:"table_name" gorm:"column:table_name;type:varchar(120)"`
+		Module   string `json:"module" gorm:"column:module_name;type:varchar(60)"`
+		Table    string `json:"table" gorm:"column:table_name;type:varchar(120)"`
 		Enable   bool   `json:"enable"`
-		Column   string `json:"column" gorm:"type:varchar(120)"`
+		Column   string `json:"field" gorm:"type:varchar(120)"`
 		Label    string `json:"label" gorm:"type:varchar(120)"`
 		Type     string `json:"type" gorm:"type:varchar(120)"`
 		Format   string `json:"format" gorm:"type:varchar(120)"`
-		Scenario string `json:"scenario" gorm:"type:varchar(120)"`
+		Scenario string `json:"visible" gorm:"type:varchar(120)"`
 		Rules    string `json:"rules" gorm:"type:varchar(2048)"`
 		Options  string `json:"options" gorm:"type:varchar(4096)"`
 		Position int    `json:"position"`