Hi folks,
I have two tables in my database, i created them using "mix phx.gen.json", for the second table i add "user:references:users" to the command.
It create a column "user" links to my users table, a foreign key if correctly understood.
My question is ho to add data to my table ?
When i do a POST request (default create function) with all the parameter (for the user i give the id of the user) it create a line in the table, but my user column is null.
Is there a specific thing to do for adding this type of column ?
Thanks