Create a Table

Now, let’s create a table in the Data Store. This table is used to create the following columns to store the required details:

Column Name Data Type Purpose
UserName Var Char To store the details of the user accessing the application.
BucketPath Var Char To store the path of the required image (object).
UserZuid Var Char To store the unique user ID of the end user signed up to your application.
SharedBy Var Char To store details of the registered user that had shared the image.

To create a table:

  1. Navigate to the Catalyst Cloud Scale service section in the console and click Start Exploring. catalyst_tutorials_photostore_cs_first_explore

  2. Navigate to the Data Store component present in the Storage section and click Create a new Table. catalyst_tutorials_photostore_datastore_create

  3. Enter “ImageShareDetails” as the name of the table and click Create. catalyst_tutorials_photostore_name_create

Note: Ensure that you enter the name exactly as instructed because the application's code contains the same name.

The table will be created. catalyst_tutorials_photostore_datastore_table_done

Now, let’s create the four required columns.

Info: You can learn about the various data types supported by Catalyst and the other properties of a column from the Data Store help documentation.
  1. Click New Column in the Schema View section. catalyst_tutorials_photostore_datastore_table_new_clm_highlit

  2. Enter the column’s name as “UserName”. Select Var Char as its datatype, enter Max Length as 100, and click Create. catalyst_tutorials_photostore_datastore_table_clm_1_create

The column will be created. catalyst_tutorials_photostore_datastore_table_clm_created

  1. Click the New Column button again to create the second column. Name the column as “BucketPath”. Select Var Char as the data type and enter 255 as the Max Length. Click Create. catalyst_tutorials_photostore_datastore_table_new_clm_2_create

  2. Click the New Column button again to create the third column. Name the column as “UserZuid”. Select Var Char as the data type and enter 50 as the Max Length. Click Create. catalyst_tutorials_photostore_datastore_table_new_clm_3_create

  3. Click the New Column button again to create the fourth column. Name the column as “SharedBy”. Select Var Char as the data type and enter 100 as the Max Length. Click Create. catalyst_tutorials_photostore_datastore_table_new_clm_4_create

All the required columns have been created. catalyst_tutorials_photostore_datastore_table_all_clm_created

Configure Scopes and Permissions

To allow your end users to provide the required data to populate the created columns, you need to enable the required permissions for the App User profile.

To enable the required permissions:

  1. Click on the Scopes & Permissions tab. catalyst_tutorials_photostore_datastore_table_user_role

  2. Select the Update, Insert, and Delete permissions for the App User by clicking the respective check boxes. Ensure that you do not change any other permission setting. catalyst_tutorials_photostore_datastore_table_user_role_all_permissions

The Data Store component is now configured for the application.

Last Updated 2025-10-09 17:47:14 +0530 IST