Create a Table in the Data Store
Let’s now create a table in the Data Store of the Dialer project. As discussed earlier, this table is used to store to-do list items created by the user.
To create a table:
-
Navigate to Cloud Scale in the Catalyst console and click Start Exploring.
-
Navigate to DataStore on the left pane and click Create a new Table.
-
Enter the table’s name as “CallLog” and 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. You can learn about the various data types supported by Catalyst and the other properties of a column from the Data Store help page.
-
Click Create.
The column will be 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-11 18:24:45 +0530 +0530