Create a Table in the Data Store
Next, let's create a table in the Data Store in the ToDoList project. As discussed earlier, this table is used to store to-do list items created by the user.
To create a table:
- Navigate to Data Store under Develop.
- Click Create a new Table.
- Enter the table's name as "TodoItems", then clickCreate.
Note: Ensure that you enter the name exactly as instructed, because the application's code contains the same name.
The table is now created and displayed in the Data Store page.
Now, let us create a column in the table to store the to-do list items.
- Click New Column in the Schema View section of the table.
- Enter the column's name as "Notes". Select the data type as Text and click the Is Mandatory toggle switch to enable it.
You can learn about the various data types supported by Catalyst and the other properties of a column from the Data Store help page.Note: Ensure that you enter the name exactly as instructed, because the application's code contains the same name. - Click Create.
The column is now created and listed in the Schema View section.
You have now configured all the necessary components from the console. You will now be working on coding the application from your local system.