Entities
The Gemini schema is very simple and self-explanatory. It is a simple YAML where you can put the list of your entities. The Gemini platform automatically reads entities and fields and provide for you all the API for inserting, updating and retrieving data with validation features.
Common Entities
Here for example a very basic schema with two entities: Product and Category and some basic fields. Each entity always has a name and a list of fields.
Common entities are those one that can contains multiple records (like a table in SQL or a collection in NoSQL). For this reason each entity has also a logical key to identify a single record. The logical key (lk) can contain one or more fields, usually strings or sequence numbers.
Entity Configuration
From the previous schema you can see some important configurations. Each Entity has:
name
The name of the Entity. It is gonna to be used in all the Gemini framework, also with low level APIs in order to retrieve the Entity Data or Configuration
lk
List of logical keys for the entity. Must be one or more fields of basic types. Usually numbers and strings. The fields order matters.
displayName
If you want a different display name, especially for the GUI parts, when you need to interact with entity configuration
fields
The list of fields for the Entity
Last updated