Page 1 of 1

User permissions/relational-DB

Posted: Mon Feb 04, 2013 10:24 pm
by logico8

Hi
I am playing around with tiggzi - and I really love it.
There is something that I cannot figure out, and this is related to users and kind of to relational-db.
Let's have an example: I want in my mobile app users to sign in and give some more information like e-mail, phone number etc. Now let's say I do not want to expand the "users-"table"(collection?)" but to add a new collection let's say user_information. How do I create the relationality - i.e. the foreign-key to the user-id?

Could you also explain how the session-id are handled such that no other users would be able to see the data from other ones?
Kind regards


User permissions/relational-DB

Posted: Tue Feb 05, 2013 1:18 am
by maxkatz

One option would be to insert a foreign-key to user id. You could also consider using a Pointer: http://docs.tiggzi.com/documentation/...

As for session id, you can have the user sign in. For the user to see only his/her objects, you would add an ACL field to your collections that would include that user id. This will mean only that user can view (or edit) that object.