Vista (intefaz y bd), esquema y endpoints de store agregados
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE "products" ALTER COLUMN "user_id" SET NOT NULL;--> statement-breakpoint
|
||||
CREATE VIEW "public"."v_product_store" AS (
|
||||
select p.id as product_id, p.title, p.description, p.price, p.stock, p.url_img, p.user_id, u.fullname
|
||||
from products p
|
||||
left join auth.users as u on u.id = p.user_id);
|
||||
1498
apps/api/src/database/migrations/meta/0003_snapshot.json
Normal file
1498
apps/api/src/database/migrations/meta/0003_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -22,6 +22,13 @@
|
||||
"when": 1750442271575,
|
||||
"tag": "0002_polite_franklin_richards",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 3,
|
||||
"version": "7",
|
||||
"when": 1751482400155,
|
||||
"tag": "0003_icy_gertrude_yorkes",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user