Relational Table creations

2 posts, 0 answers
  1. Cloudafied
    Cloudafied avatar
    1 posts
    Member since:
    Feb 2015

    Posted 24 Feb 2015 Link to this post

    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?

  2. Alexander
    Alexander avatar
    727 posts

    Posted 25 Feb 2015 Link to this post

    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.

    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
Back to Top