Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new user query to DB should also add user skills #33

Open
haydnba opened this issue Apr 7, 2018 · 0 comments
Open

Add new user query to DB should also add user skills #33

haydnba opened this issue Apr 7, 2018 · 0 comments

Comments

@haydnba
Copy link
Contributor

haydnba commented Apr 7, 2018

The add new user query should 1. add to both user table and skills table and 2. automatically retrieve the generated user id and skill id and use these to create the links in the linking user_skills table

perhaps like this:

with
ids as (
insert ...
returning id
)
insert ...
from ids;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant