Create Table

Next, 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
Name Var Char To store the name of the people you are going to send wishes to.
Message Text To store the custom message.
BirthDay Date To store the date of the birthday.
Email Var Char To store the recipient's email address.
AutoSend Boolean To choose to send the email automatically to the required person at the scheduled time. The default value will be True

To create a table:

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

    catalyst_tutorials_jobscheduling_cloudscale_start_explore
  2. Navigate to the Data Store component under the STORAGE section and click Create a new Table.

    catalyst_tutorials_jobscheduling_datastore_table_create
  3. Enter the table’s name as “BirthDayReminder” and click Create.

    catalyst_tutorials_jobscheduling_datastore_nme_table
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_jobscheduling_datastore_table_created

Now, let’s create the 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_jobscheduling_datastore_clm_new_clm
  2. Enter the column’s name as “Name”. Select the data type as Var Char, and enter “100” as the Max Length.

    catalyst_tutorials_jobscheduling_datastore_clm_name_clm
  3. Click Create.

    catalyst_tutorials_jobscheduling_datastore_clm_first_created
  4. Click the New Column button again to create the second column. Name it “Message”, select Text as its data type, and click Create.

    catalyst_tutorials_jobscheduling_datastore_clm_2_created
  5. Click the New Column button again to create the third column. Name it “BirthDay”, select Date as its data type, and click Create.

    catalyst_tutorials_jobscheduling_datastore_clm_3_created
  6. Click the New Column button again to create the fourth column. Name it “Email”, select Var Char as its data type, enter “120” as the Max Length, and click Create.

    catalyst_tutorials_jobscheduling_datastore_clm_4_created
  7. Lastly, click the New Column button again to create the fifth column. Name it “AutoSend”, select Boolean as its data type, select True as the Default Value, and click Create.

    catalyst_tutorials_jobscheduling_datastore_clm_5_created

All of the required columns have been created.

catalyst_tutorials_jobscheduling_datastore_clms_created

Configure Scopes and Permissions

To allow any user of the Birthday Greetings application to create and manage birthday messages from the client application, you must enable CRUD operations for the App User profile and set its role as User.

To enable the required permissions:

  1. Click the Scopes & Permissions tab.

    catalyst_tutorials_jobscheduling_datastore_scopes_page
  2. Select the User profile for the App User role.

    catalyst_tutorials_jobscheduling_datastore_scopes_roles_user
  3. 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_jobscheduling_datastore_scopes_roles_user_permissions_done

The Data Store component is now configured for the application.

Last Updated 2025-04-01 11:10:20 +0530 +0530