I need to create UUID in a sign up form when signing up to a website, as I have two types of users Partners & Member both have a lot of different information stored so I can’t use the same table for both, my solution was to have the following:
Create a 3 forms - tables
- user table - id, uuid, username,password, role (member, partner) etc…
- members table - id uuid name, email, rest of fields
- partner table - id uuid partner name, contact name, email, rest of fields
on initial create user (user login) it generates a uuid so this can be stored in to the 2 relevant tables
how would I do this in either the model view or controller when a user signs up?
I’m at a loss