Create a Table

Let’s now create a table in the Data Store of the ToDoList project. As discussed earlier, this table is used to store to-do list items created by the user.

To create a table:

  1. Navigate to the Cloud Scale section of the console, and click Start Exploring. catalyst_todolist_cloud_scale_console_view

  2. Navigate to Data Store under Storage and click Create a New Table. catalyst_todolist_console_cloudscale_datastore_view

  3. Enter the table’s name as “TodoItems”, then click Create. catalyst_todo_table_name

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.

Create Columns

Now, let us create a column in the table to store the to-do list items.

  1. Click New Column in the Schema View section of the table. catalyst_todo_datastore_viewblock

  2. Enter the column’s name as “Notes”. Select the data type as Text and click the Is Mandatory toggle switch to enable it. catalyst_todo_column_name

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.
  1. Click Create.

The column is now created and listed in the Schema View section.

catalyst_todo_table_view

You have now configured all the necessary components from the console. You will now be working on coding the application from your local system.


Last Updated 2024-06-12 17:41:34 +0530 +0530

RELATED LINKS

Data Store