Agrega Productos y sus recetas

This commit is contained in:
2021-07-12 19:10:43 -04:00
parent df5238850e
commit d3713e2f93
10 changed files with 408 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ create table productos (
);
create table recetas (
id uuid primary key default gen_random_uuid(),
producto_id uuid references productos,
ingrediente_id uuid references ingredientes,
unidades numeric not null,

View File

@@ -0,0 +1,2 @@
alter table recetas drop constraint recetas_pkey;
alter table recetas add column id uuid primary key default gen_random_uuid();