Files
2026-09-30 14:45:10 -05:00

1423 lines
48 KiB
JSON

[
{
"id": "schema.public",
"label": "Create schema \"public\"",
"operationClass": "additive",
"target": {
"id": "postgres"
},
"precheck": [],
"execute": [
{
"description": "Create schema \"public\"",
"sql": "CREATE SCHEMA IF NOT EXISTS \"public\"",
"params": []
}
],
"postcheck": []
},
{
"id": "table.cart_products",
"label": "Create table \"cart_products\"",
"summary": "Creates table \"cart_products\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "cart_products"
}
},
"precheck": [
{
"description": "ensure table \"cart_products\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"cart_products\""
]
}
],
"execute": [
{
"description": "create table \"cart_products\"",
"sql": "CREATE TABLE \"public\".\"cart_products\" (\n \"cartId\" int4 NOT NULL,\n \"historyId\" int4 NOT NULL,\n \"quantity\" int4 NOT NULL,\n PRIMARY KEY (\"cartId\", \"historyId\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"cart_products\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"cart_products\""
]
}
]
},
{
"id": "table.category",
"label": "Create table \"category\"",
"summary": "Creates table \"category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "category"
}
},
"precheck": [
{
"description": "ensure table \"category\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"category\""
]
}
],
"execute": [
{
"description": "create table \"category\"",
"sql": "CREATE TABLE \"public\".\"category\" (\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"name\" text NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"category\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"category\""
]
}
]
},
{
"id": "table.inventory",
"label": "Create table \"inventory\"",
"summary": "Creates table \"inventory\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "inventory"
}
},
"precheck": [
{
"description": "ensure table \"inventory\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"inventory\""
]
}
],
"execute": [
{
"description": "create table \"inventory\"",
"sql": "CREATE TABLE \"public\".\"inventory\" (\n \"id\" SERIAL NOT NULL,\n \"name\" text NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"inventory\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"inventory\""
]
}
]
},
{
"id": "table.payment",
"label": "Create table \"payment\"",
"summary": "Creates table \"payment\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "payment"
}
},
"precheck": [
{
"description": "ensure table \"payment\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"payment\""
]
}
],
"execute": [
{
"description": "create table \"payment\"",
"sql": "CREATE TABLE \"public\".\"payment\" (\n \"cartId\" int4 NOT NULL,\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"orderId\" int4,\n \"paid\" bool DEFAULT false NOT NULL,\n \"paidAt\" timestamptz,\n \"paymentMethod\" text NOT NULL,\n \"status\" text NOT NULL,\n \"terminalId\" int4,\n \"userId\" int4 NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"payment\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"payment\""
]
}
]
},
{
"id": "table.product",
"label": "Create table \"product\"",
"summary": "Creates table \"product\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "product"
}
},
"precheck": [
{
"description": "ensure table \"product\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product\""
]
}
],
"execute": [
{
"description": "create table \"product\"",
"sql": "CREATE TABLE \"public\".\"product\" (\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"description\" text,\n \"id\" SERIAL NOT NULL,\n \"name\" text NOT NULL,\n \"sku\" text NOT NULL,\n \"supplierId\" int4,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"product\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product\""
]
}
]
},
{
"id": "table.product_category",
"label": "Create table \"product_category\"",
"summary": "Creates table \"product_category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "product_category"
}
},
"precheck": [
{
"description": "ensure table \"product_category\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_category\""
]
}
],
"execute": [
{
"description": "create table \"product_category\"",
"sql": "CREATE TABLE \"public\".\"product_category\" (\n \"categoryId\" int4 NOT NULL,\n \"productId\" int4 NOT NULL,\n PRIMARY KEY (\"productId\", \"categoryId\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"product_category\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_category\""
]
}
]
},
{
"id": "table.product_history",
"label": "Create table \"product_history\"",
"summary": "Creates table \"product_history\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "product_history"
}
},
"precheck": [
{
"description": "ensure table \"product_history\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_history\""
]
}
],
"execute": [
{
"description": "create table \"product_history\"",
"sql": "CREATE TABLE \"public\".\"product_history\" (\n \"costUnit\" numeric NOT NULL,\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"productId\" int4 NOT NULL,\n \"soldAt\" timestamptz,\n \"status\" text NOT NULL,\n \"unitPrice\" numeric NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"product_history\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_history\""
]
}
]
},
{
"id": "table.shop_cart",
"label": "Create table \"shop_cart\"",
"summary": "Creates table \"shop_cart\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "shop_cart"
}
},
"precheck": [
{
"description": "ensure table \"shop_cart\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"shop_cart\""
]
}
],
"execute": [
{
"description": "create table \"shop_cart\"",
"sql": "CREATE TABLE \"public\".\"shop_cart\" (\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"totalPrice\" numeric NOT NULL,\n \"userId\" int4,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"shop_cart\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"shop_cart\""
]
}
]
},
{
"id": "table.supplier",
"label": "Create table \"supplier\"",
"summary": "Creates table \"supplier\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "supplier"
}
},
"precheck": [
{
"description": "ensure table \"supplier\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"supplier\""
]
}
],
"execute": [
{
"description": "create table \"supplier\"",
"sql": "CREATE TABLE \"public\".\"supplier\" (\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"lastSupply\" timestamptz,\n \"name\" text NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"supplier\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"supplier\""
]
}
]
},
{
"id": "table.user",
"label": "Create table \"user\"",
"summary": "Creates table \"user\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "user"
}
},
"precheck": [
{
"description": "ensure table \"user\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"user\""
]
}
],
"execute": [
{
"description": "create table \"user\"",
"sql": "CREATE TABLE \"public\".\"user\" (\n \"createdAt\" timestamptz DEFAULT (now()) NOT NULL,\n \"email\" text NOT NULL,\n \"id\" SERIAL NOT NULL,\n \"name\" text NOT NULL,\n \"password\" text NOT NULL,\n \"role\" text NOT NULL,\n \"updatedAt\" timestamptz NOT NULL,\n PRIMARY KEY (\"id\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"user\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"user\""
]
}
]
},
{
"id": "table.warehouse",
"label": "Create table \"warehouse\"",
"summary": "Creates table \"warehouse\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "table",
"name": "warehouse"
}
},
"precheck": [
{
"description": "ensure table \"warehouse\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"warehouse\""
]
}
],
"execute": [
{
"description": "create table \"warehouse\"",
"sql": "CREATE TABLE \"public\".\"warehouse\" (\n \"inventoryId\" int4 NOT NULL,\n \"productId\" int4 NOT NULL,\n \"stock\" int4 DEFAULT 0 NOT NULL,\n PRIMARY KEY (\"inventoryId\", \"productId\")\n)",
"params": []
}
],
"postcheck": [
{
"description": "verify table \"warehouse\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"warehouse\""
]
}
]
},
{
"id": "unique.product.product_sku_key",
"label": "Add unique constraint on \"product\" (sku)",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "unique",
"name": "product_sku_key",
"table": "product"
}
},
"precheck": [
{
"description": "ensure constraint \"product_sku_key\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_sku_key",
"public",
"\"public\".\"product\""
]
}
],
"execute": [
{
"description": "add unique constraint \"product_sku_key\"",
"sql": "ALTER TABLE \"public\".\"product\" ADD CONSTRAINT \"product_sku_key\" UNIQUE (\"sku\")"
}
],
"postcheck": [
{
"description": "verify constraint \"product_sku_key\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_sku_key",
"public",
"\"public\".\"product\""
]
}
]
},
{
"id": "unique.user.user_email_key",
"label": "Add unique constraint on \"user\" (email)",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "unique",
"name": "user_email_key",
"table": "user"
}
},
"precheck": [
{
"description": "ensure constraint \"user_email_key\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"user_email_key",
"public",
"\"public\".\"user\""
]
}
],
"execute": [
{
"description": "add unique constraint \"user_email_key\"",
"sql": "ALTER TABLE \"public\".\"user\" ADD CONSTRAINT \"user_email_key\" UNIQUE (\"email\")"
}
],
"postcheck": [
{
"description": "verify constraint \"user_email_key\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"user_email_key",
"public",
"\"public\".\"user\""
]
}
]
},
{
"id": "index.cart_products.cart_products_cartId_idx_79939295",
"label": "Create index \"cart_products_cartId_idx_79939295\" on \"cart_products\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "cart_products_cartId_idx_79939295",
"table": "cart_products"
}
},
"precheck": [
{
"description": "ensure index \"cart_products_cartId_idx_79939295\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"cart_products_cartId_idx_79939295\""
]
}
],
"execute": [
{
"description": "create index \"cart_products_cartId_idx_79939295\"",
"sql": "CREATE INDEX \"cart_products_cartId_idx_79939295\" ON \"public\".\"cart_products\" (\"cartId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"cart_products_cartId_idx_79939295\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"cart_products_cartId_idx_79939295\""
]
}
]
},
{
"id": "index.cart_products.cart_products_historyId_idx_dfaba3ef",
"label": "Create index \"cart_products_historyId_idx_dfaba3ef\" on \"cart_products\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "cart_products_historyId_idx_dfaba3ef",
"table": "cart_products"
}
},
"precheck": [
{
"description": "ensure index \"cart_products_historyId_idx_dfaba3ef\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"cart_products_historyId_idx_dfaba3ef\""
]
}
],
"execute": [
{
"description": "create index \"cart_products_historyId_idx_dfaba3ef\"",
"sql": "CREATE INDEX \"cart_products_historyId_idx_dfaba3ef\" ON \"public\".\"cart_products\" (\"historyId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"cart_products_historyId_idx_dfaba3ef\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"cart_products_historyId_idx_dfaba3ef\""
]
}
]
},
{
"id": "index.payment.payment_cartId_idx_79939295",
"label": "Create index \"payment_cartId_idx_79939295\" on \"payment\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "payment_cartId_idx_79939295",
"table": "payment"
}
},
"precheck": [
{
"description": "ensure index \"payment_cartId_idx_79939295\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"payment_cartId_idx_79939295\""
]
}
],
"execute": [
{
"description": "create index \"payment_cartId_idx_79939295\"",
"sql": "CREATE INDEX \"payment_cartId_idx_79939295\" ON \"public\".\"payment\" (\"cartId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"payment_cartId_idx_79939295\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"payment_cartId_idx_79939295\""
]
}
]
},
{
"id": "index.payment.payment_userId_idx_a489d58a",
"label": "Create index \"payment_userId_idx_a489d58a\" on \"payment\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "payment_userId_idx_a489d58a",
"table": "payment"
}
},
"precheck": [
{
"description": "ensure index \"payment_userId_idx_a489d58a\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"payment_userId_idx_a489d58a\""
]
}
],
"execute": [
{
"description": "create index \"payment_userId_idx_a489d58a\"",
"sql": "CREATE INDEX \"payment_userId_idx_a489d58a\" ON \"public\".\"payment\" (\"userId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"payment_userId_idx_a489d58a\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"payment_userId_idx_a489d58a\""
]
}
]
},
{
"id": "index.product.product_supplierId_idx_c4d9a8b9",
"label": "Create index \"product_supplierId_idx_c4d9a8b9\" on \"product\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "product_supplierId_idx_c4d9a8b9",
"table": "product"
}
},
"precheck": [
{
"description": "ensure index \"product_supplierId_idx_c4d9a8b9\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_supplierId_idx_c4d9a8b9\""
]
}
],
"execute": [
{
"description": "create index \"product_supplierId_idx_c4d9a8b9\"",
"sql": "CREATE INDEX \"product_supplierId_idx_c4d9a8b9\" ON \"public\".\"product\" (\"supplierId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"product_supplierId_idx_c4d9a8b9\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_supplierId_idx_c4d9a8b9\""
]
}
]
},
{
"id": "index.product_category.product_category_categoryId_idx_15c304f2",
"label": "Create index \"product_category_categoryId_idx_15c304f2\" on \"product_category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "product_category_categoryId_idx_15c304f2",
"table": "product_category"
}
},
"precheck": [
{
"description": "ensure index \"product_category_categoryId_idx_15c304f2\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_category_categoryId_idx_15c304f2\""
]
}
],
"execute": [
{
"description": "create index \"product_category_categoryId_idx_15c304f2\"",
"sql": "CREATE INDEX \"product_category_categoryId_idx_15c304f2\" ON \"public\".\"product_category\" (\"categoryId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"product_category_categoryId_idx_15c304f2\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_category_categoryId_idx_15c304f2\""
]
}
]
},
{
"id": "index.product_category.product_category_productId_idx_5858600a",
"label": "Create index \"product_category_productId_idx_5858600a\" on \"product_category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "product_category_productId_idx_5858600a",
"table": "product_category"
}
},
"precheck": [
{
"description": "ensure index \"product_category_productId_idx_5858600a\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_category_productId_idx_5858600a\""
]
}
],
"execute": [
{
"description": "create index \"product_category_productId_idx_5858600a\"",
"sql": "CREATE INDEX \"product_category_productId_idx_5858600a\" ON \"public\".\"product_category\" (\"productId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"product_category_productId_idx_5858600a\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_category_productId_idx_5858600a\""
]
}
]
},
{
"id": "index.product_history.product_history_productId_idx_5858600a",
"label": "Create index \"product_history_productId_idx_5858600a\" on \"product_history\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "product_history_productId_idx_5858600a",
"table": "product_history"
}
},
"precheck": [
{
"description": "ensure index \"product_history_productId_idx_5858600a\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"product_history_productId_idx_5858600a\""
]
}
],
"execute": [
{
"description": "create index \"product_history_productId_idx_5858600a\"",
"sql": "CREATE INDEX \"product_history_productId_idx_5858600a\" ON \"public\".\"product_history\" (\"productId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"product_history_productId_idx_5858600a\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"product_history_productId_idx_5858600a\""
]
}
]
},
{
"id": "index.shop_cart.shop_cart_userId_idx_a489d58a",
"label": "Create index \"shop_cart_userId_idx_a489d58a\" on \"shop_cart\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "shop_cart_userId_idx_a489d58a",
"table": "shop_cart"
}
},
"precheck": [
{
"description": "ensure index \"shop_cart_userId_idx_a489d58a\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"shop_cart_userId_idx_a489d58a\""
]
}
],
"execute": [
{
"description": "create index \"shop_cart_userId_idx_a489d58a\"",
"sql": "CREATE INDEX \"shop_cart_userId_idx_a489d58a\" ON \"public\".\"shop_cart\" (\"userId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"shop_cart_userId_idx_a489d58a\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"shop_cart_userId_idx_a489d58a\""
]
}
]
},
{
"id": "index.warehouse.warehouse_inventoryId_idx_367f33d0",
"label": "Create index \"warehouse_inventoryId_idx_367f33d0\" on \"warehouse\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "warehouse_inventoryId_idx_367f33d0",
"table": "warehouse"
}
},
"precheck": [
{
"description": "ensure index \"warehouse_inventoryId_idx_367f33d0\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"warehouse_inventoryId_idx_367f33d0\""
]
}
],
"execute": [
{
"description": "create index \"warehouse_inventoryId_idx_367f33d0\"",
"sql": "CREATE INDEX \"warehouse_inventoryId_idx_367f33d0\" ON \"public\".\"warehouse\" (\"inventoryId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"warehouse_inventoryId_idx_367f33d0\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"warehouse_inventoryId_idx_367f33d0\""
]
}
]
},
{
"id": "index.warehouse.warehouse_productId_idx_5858600a",
"label": "Create index \"warehouse_productId_idx_5858600a\" on \"warehouse\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "index",
"name": "warehouse_productId_idx_5858600a",
"table": "warehouse"
}
},
"precheck": [
{
"description": "ensure index \"warehouse_productId_idx_5858600a\" does not exist",
"sql": "SELECT (to_regclass($1)) IS NULL AS \"result\"",
"params": [
"\"public\".\"warehouse_productId_idx_5858600a\""
]
}
],
"execute": [
{
"description": "create index \"warehouse_productId_idx_5858600a\"",
"sql": "CREATE INDEX \"warehouse_productId_idx_5858600a\" ON \"public\".\"warehouse\" (\"productId\")",
"params": []
}
],
"postcheck": [
{
"description": "verify index \"warehouse_productId_idx_5858600a\" exists",
"sql": "SELECT (to_regclass($1)) IS NOT NULL AS \"result\"",
"params": [
"\"public\".\"warehouse_productId_idx_5858600a\""
]
}
]
},
{
"id": "foreignKey.cart_products.cart_products_cartId_fkey",
"label": "Add foreign key \"cart_products_cartId_fkey\" on \"cart_products\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "cart_products_cartId_fkey",
"table": "cart_products"
}
},
"precheck": [
{
"description": "ensure FK \"cart_products_cartId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"cart_products_cartId_fkey",
"public",
"\"public\".\"cart_products\""
]
}
],
"execute": [
{
"description": "add FK \"cart_products_cartId_fkey\"",
"sql": "ALTER TABLE \"public\".\"cart_products\"\nADD CONSTRAINT \"cart_products_cartId_fkey\"\nFOREIGN KEY (\"cartId\")\nREFERENCES \"public\".\"shop_cart\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"cart_products_cartId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"cart_products_cartId_fkey",
"public",
"\"public\".\"cart_products\""
]
}
]
},
{
"id": "foreignKey.cart_products.cart_products_historyId_fkey",
"label": "Add foreign key \"cart_products_historyId_fkey\" on \"cart_products\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "cart_products_historyId_fkey",
"table": "cart_products"
}
},
"precheck": [
{
"description": "ensure FK \"cart_products_historyId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"cart_products_historyId_fkey",
"public",
"\"public\".\"cart_products\""
]
}
],
"execute": [
{
"description": "add FK \"cart_products_historyId_fkey\"",
"sql": "ALTER TABLE \"public\".\"cart_products\"\nADD CONSTRAINT \"cart_products_historyId_fkey\"\nFOREIGN KEY (\"historyId\")\nREFERENCES \"public\".\"product_history\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"cart_products_historyId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"cart_products_historyId_fkey",
"public",
"\"public\".\"cart_products\""
]
}
]
},
{
"id": "foreignKey.payment.payment_cartId_fkey",
"label": "Add foreign key \"payment_cartId_fkey\" on \"payment\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "payment_cartId_fkey",
"table": "payment"
}
},
"precheck": [
{
"description": "ensure FK \"payment_cartId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"payment_cartId_fkey",
"public",
"\"public\".\"payment\""
]
}
],
"execute": [
{
"description": "add FK \"payment_cartId_fkey\"",
"sql": "ALTER TABLE \"public\".\"payment\"\nADD CONSTRAINT \"payment_cartId_fkey\"\nFOREIGN KEY (\"cartId\")\nREFERENCES \"public\".\"shop_cart\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"payment_cartId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"payment_cartId_fkey",
"public",
"\"public\".\"payment\""
]
}
]
},
{
"id": "foreignKey.payment.payment_userId_fkey",
"label": "Add foreign key \"payment_userId_fkey\" on \"payment\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "payment_userId_fkey",
"table": "payment"
}
},
"precheck": [
{
"description": "ensure FK \"payment_userId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"payment_userId_fkey",
"public",
"\"public\".\"payment\""
]
}
],
"execute": [
{
"description": "add FK \"payment_userId_fkey\"",
"sql": "ALTER TABLE \"public\".\"payment\"\nADD CONSTRAINT \"payment_userId_fkey\"\nFOREIGN KEY (\"userId\")\nREFERENCES \"public\".\"user\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"payment_userId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"payment_userId_fkey",
"public",
"\"public\".\"payment\""
]
}
]
},
{
"id": "foreignKey.product.product_supplierId_fkey",
"label": "Add foreign key \"product_supplierId_fkey\" on \"product\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "product_supplierId_fkey",
"table": "product"
}
},
"precheck": [
{
"description": "ensure FK \"product_supplierId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_supplierId_fkey",
"public",
"\"public\".\"product\""
]
}
],
"execute": [
{
"description": "add FK \"product_supplierId_fkey\"",
"sql": "ALTER TABLE \"public\".\"product\"\nADD CONSTRAINT \"product_supplierId_fkey\"\nFOREIGN KEY (\"supplierId\")\nREFERENCES \"public\".\"supplier\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"product_supplierId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_supplierId_fkey",
"public",
"\"public\".\"product\""
]
}
]
},
{
"id": "foreignKey.product_category.product_category_productId_fkey",
"label": "Add foreign key \"product_category_productId_fkey\" on \"product_category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "product_category_productId_fkey",
"table": "product_category"
}
},
"precheck": [
{
"description": "ensure FK \"product_category_productId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_category_productId_fkey",
"public",
"\"public\".\"product_category\""
]
}
],
"execute": [
{
"description": "add FK \"product_category_productId_fkey\"",
"sql": "ALTER TABLE \"public\".\"product_category\"\nADD CONSTRAINT \"product_category_productId_fkey\"\nFOREIGN KEY (\"productId\")\nREFERENCES \"public\".\"product\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"product_category_productId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_category_productId_fkey",
"public",
"\"public\".\"product_category\""
]
}
]
},
{
"id": "foreignKey.product_category.product_category_categoryId_fkey",
"label": "Add foreign key \"product_category_categoryId_fkey\" on \"product_category\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "product_category_categoryId_fkey",
"table": "product_category"
}
},
"precheck": [
{
"description": "ensure FK \"product_category_categoryId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_category_categoryId_fkey",
"public",
"\"public\".\"product_category\""
]
}
],
"execute": [
{
"description": "add FK \"product_category_categoryId_fkey\"",
"sql": "ALTER TABLE \"public\".\"product_category\"\nADD CONSTRAINT \"product_category_categoryId_fkey\"\nFOREIGN KEY (\"categoryId\")\nREFERENCES \"public\".\"category\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"product_category_categoryId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_category_categoryId_fkey",
"public",
"\"public\".\"product_category\""
]
}
]
},
{
"id": "foreignKey.product_history.product_history_productId_fkey",
"label": "Add foreign key \"product_history_productId_fkey\" on \"product_history\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "product_history_productId_fkey",
"table": "product_history"
}
},
"precheck": [
{
"description": "ensure FK \"product_history_productId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_history_productId_fkey",
"public",
"\"public\".\"product_history\""
]
}
],
"execute": [
{
"description": "add FK \"product_history_productId_fkey\"",
"sql": "ALTER TABLE \"public\".\"product_history\"\nADD CONSTRAINT \"product_history_productId_fkey\"\nFOREIGN KEY (\"productId\")\nREFERENCES \"public\".\"product\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"product_history_productId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"product_history_productId_fkey",
"public",
"\"public\".\"product_history\""
]
}
]
},
{
"id": "foreignKey.shop_cart.shop_cart_userId_fkey",
"label": "Add foreign key \"shop_cart_userId_fkey\" on \"shop_cart\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "shop_cart_userId_fkey",
"table": "shop_cart"
}
},
"precheck": [
{
"description": "ensure FK \"shop_cart_userId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"shop_cart_userId_fkey",
"public",
"\"public\".\"shop_cart\""
]
}
],
"execute": [
{
"description": "add FK \"shop_cart_userId_fkey\"",
"sql": "ALTER TABLE \"public\".\"shop_cart\"\nADD CONSTRAINT \"shop_cart_userId_fkey\"\nFOREIGN KEY (\"userId\")\nREFERENCES \"public\".\"user\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"shop_cart_userId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"shop_cart_userId_fkey",
"public",
"\"public\".\"shop_cart\""
]
}
]
},
{
"id": "foreignKey.warehouse.warehouse_inventoryId_fkey",
"label": "Add foreign key \"warehouse_inventoryId_fkey\" on \"warehouse\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "warehouse_inventoryId_fkey",
"table": "warehouse"
}
},
"precheck": [
{
"description": "ensure FK \"warehouse_inventoryId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"warehouse_inventoryId_fkey",
"public",
"\"public\".\"warehouse\""
]
}
],
"execute": [
{
"description": "add FK \"warehouse_inventoryId_fkey\"",
"sql": "ALTER TABLE \"public\".\"warehouse\"\nADD CONSTRAINT \"warehouse_inventoryId_fkey\"\nFOREIGN KEY (\"inventoryId\")\nREFERENCES \"public\".\"inventory\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"warehouse_inventoryId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"warehouse_inventoryId_fkey",
"public",
"\"public\".\"warehouse\""
]
}
]
},
{
"id": "foreignKey.warehouse.warehouse_productId_fkey",
"label": "Add foreign key \"warehouse_productId_fkey\" on \"warehouse\"",
"operationClass": "additive",
"target": {
"id": "postgres",
"details": {
"schema": "public",
"objectType": "foreignKey",
"name": "warehouse_productId_fkey",
"table": "warehouse"
}
},
"precheck": [
{
"description": "ensure FK \"warehouse_productId_fkey\" does not exist",
"sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"warehouse_productId_fkey",
"public",
"\"public\".\"warehouse\""
]
}
],
"execute": [
{
"description": "add FK \"warehouse_productId_fkey\"",
"sql": "ALTER TABLE \"public\".\"warehouse\"\nADD CONSTRAINT \"warehouse_productId_fkey\"\nFOREIGN KEY (\"productId\")\nREFERENCES \"public\".\"product\" (\"id\")"
}
],
"postcheck": [
{
"description": "verify FK \"warehouse_productId_fkey\" exists",
"sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_constraint\" AS \"c\" INNER JOIN \"pg_namespace\" AS \"n\" ON \"n\".\"oid\" = \"c\".\"connamespace\" WHERE (\"c\".\"conname\" = $1 AND \"n\".\"nspname\" = $2 AND \"c\".\"conrelid\" = to_regclass($3))) AS \"result\"",
"params": [
"warehouse_productId_fkey",
"public",
"\"public\".\"warehouse\""
]
}
]
}
]