In the previous article, we analyzed the function points of the food ordering applet. With the functions, it is easy to develop. Low-code development is model-driven development, what is model-driven? It is to ask you to design the table structure first, and then develop the page.
So how to design the data source? In fact, it is to split the information into different data sources by category. Which data sources to split into is determined by the information on our page, let's disassemble them one by one
The store information needs to be displayed on the ordering page. The store has three information: name, location, and contact number
1 Create data sources and fields
After determining the fields, we open the console, click on the data source, select the data model under the data source, and select the new model
Enter the name in the new data model page, and the logo will be automatically generated.
After the model is successfully created, we need to click the edit button to enter the field addition interface
. Click Add Field, and we will enter our field information in turn.
The first field we need to fill in the store name, type we can choose