This is my stackoverflow link which may be able to make it look more easier 
to understand

On Friday, January 5, 2018 at 3:47:23 PM UTC+9, chern...@gmail.com wrote:
>
> I am doing a django rest framework API for ios application. And currently, 
> i am doing a function between user and family.
> Let me explain my logic between these two. 
>
> User= current user (an account that can be use to login)
> Family = current user's family member eg:father mother (it is not an 
> account, cannot be use to sign in)
>
> What i am thinking right now is that if the current user's family wanted 
> to create an account, is it possible to import the data from family table 
> to user table for that family member to register ?
>
> Example scenario : 
> user table : userId, username, password, email, phone_number, 
> identification_num, first_name, last_name
> family table :Id, userId(foreign key to user table, cannot be null) , 
> familyId(can be null, reason is to allow user to add family member that did 
> not register an account), phone_number, identification_num, first_name, 
> last_name, relationship
>
> Is it possible for user to sent invitation link to that family member, and 
> it will import the data to the family member to register an account
> - family member click on invite link
> - redirect to register page with the detail from family table.
> - If register success, insert the userId of that family member into 
> familyId of family table.
> - that family member account's family table will also update to have a 
> family data with the current user.
>
> Did i explain it clearly ? Sorry if it is not, you can tell me if it is 
> not clear enough so i can try to make it clearer.
> Is this kind of design good ? It seems like it has alot of flaw. 
> Is it possible to import all that information into that invite register 
> page ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3e76e56b-41ed-441d-a884-d7060af69f1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to