Create a Table in the Data Store
Next, let’s create a table in the Data Store in the CatalystDialerApp project. As discussed earlier, this table is used to store to-do list items created by the user.
To create a table:
-
Navigate to the Catalyst CloudScale DataStore component in the console. Click Start Exploring.
-
Click Create a new Table.
- Enter the table’s name as “CallLog”, then click Create.
The table is now created and displayed in the Data Store page.
Create Columns
Next, let’s create a column to store the details of the call.
-
Click New Column in the Schema View section of the table.
-
Enter the column’s name as “callDuration”. Select the data type as ‘int’ and click the ‘Is Mandatory’ toggle switch to enable it.
- Click Create.
The column is now created and listed in the Schema View section.
You must now create five other columns in the same way. The table must contain six columns in total with the following mandatory properties :
Column Name | Data Type | Max Length |
---|---|---|
callStatus | varchar | 255 |
calledCountry | varchar | 255 |
timeOfCall | varchar | 255 |
fromNumber | varchar | |
toNumber | text |
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:37:03 +0530 +0530