This is a migrated thread and some comments may be shown as answers.

Relational Table creations

1 Answer 62 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cloudafied
Top achievements
Rank 1
Cloudafied asked on 24 Feb 2015, 12:59 PM
I'm new to Telerik Platform for Mobile development. I've an app idea and I'm trying to develop it. My App idea needs a data model with many tables and relationships between the tables. How can I achieve this through Telerik Backend Data services ? For Example: I've a customer table, a service_provider table and a service_request table. When the customer logs in, either he can place a service request against a service provider(which gets stored in service_request table) or he can view the previous service requests and its status(data retrieval from service_request table). When a service provider logs in, he can able to see what all requests he got and what all the previous requests he took care of...e.t.c 

As I couldn't see anyway to create a data model, how can I achieve this? any sample code/app in similar lines?

Regards,
Naresh

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 25 Feb 2015, 05:27 PM
Hi Naresh,

The data store of Telerik Backend Services is actually not relational but document based (NoSQL). This means there is no need to define tables like in a relational database. However, for easier usage, cleaner API and best performance we have introduced the concept of Content Types. Similarly to a relational table, the content type defines a common structure for the items you will store together in the database, but it does not necessarily enforce that all items have the same fields.

For your application you would need to create content types like Customer, ServiceProvider and ServiceRequest. You can also define relations between them by using fields of type Relation. For more details about our Cloud Data service, please have a look at the following sections in our documentation:
Storing Data in the Cloud
Introduction to Data Storage in Telerik Backend Services

Of course, you are welcome to send us any questions that may arise during your startup with Backend Services.

Regards,
Alexander
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
General Discussion
Asked by
Cloudafied
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or