Skip to content

Commit

Permalink
add entity features
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Dec 23, 2024
1 parent 6167734 commit 97dc442
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/db/entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type FieldOption struct {
Image string `gorm:"column:image;size:255" json:"image"`
FieldSlug string `gorm:"column:field_slug;size:128;fk:entity_field" json:"field_slug"`
EntityField *Field `gorm:"foreignKey:FieldSlug" json:"entity_field,omitempty"`
ClassName string `gorm:"column:class_name;size:255" json:"class_name"`
VisualOrder int `gorm:"column:visual_order" json:"visual_order"`
restify.API
}
Expand All @@ -69,6 +70,7 @@ func (FieldOption) TableName() string {
type DataSource struct {
Type Type `json:"type"`
URL *string `json:"url,omitempty"`
Preload bool `json:"preload"`
Dictionary *types.Dictionary[any, any] `json:"dictionary,omitempty"`
Mapper *Mapper `json:"mapper,omitempty"`
}
Expand Down

0 comments on commit 97dc442

Please sign in to comment.