Skip to content

Commit 97dc442

Browse files
committed
add entity features
1 parent 6167734 commit 97dc442

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/db/entity/entity.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type FieldOption struct {
5858
Image string `gorm:"column:image;size:255" json:"image"`
5959
FieldSlug string `gorm:"column:field_slug;size:128;fk:entity_field" json:"field_slug"`
6060
EntityField *Field `gorm:"foreignKey:FieldSlug" json:"entity_field,omitempty"`
61+
ClassName string `gorm:"column:class_name;size:255" json:"class_name"`
6162
VisualOrder int `gorm:"column:visual_order" json:"visual_order"`
6263
restify.API
6364
}
@@ -69,6 +70,7 @@ func (FieldOption) TableName() string {
6970
type DataSource struct {
7071
Type Type `json:"type"`
7172
URL *string `json:"url,omitempty"`
73+
Preload bool `json:"preload"`
7274
Dictionary *types.Dictionary[any, any] `json:"dictionary,omitempty"`
7375
Mapper *Mapper `json:"mapper,omitempty"`
7476
}

0 commit comments

Comments
 (0)