logico8
Posts: 0
Joined: Mon Feb 04, 2013 10:23 pm

User permissions/relational-DB

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

User permissions/relational-DB

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.

Return to “Issues”