Ordering applet practical tutorial 02- store data source design

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

insert image description here
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

insert image description here
Enter the name in the new data model page, and the logo will be automatically generated.
insert image description here
After the model is successfully created, we need to click the edit button to enter the field addition interface
insert image description here
. Click Add Field, and we will enter our field information in turn.
insert image description here
The first field we need to fill in the store name, type we can choose

Guess you like

Origin blog.csdn.net/u012877217/article/details/130658913