add new endpoints

This commit is contained in:
Daniel Goc
2026-03-24 15:44:31 +01:00
parent defdfc7b06
commit d6fa655c21
6 changed files with 162 additions and 14 deletions

View File

@@ -102,7 +102,7 @@ CREATE TABLE IF NOT EXISTS b2b_carts_products (
cart_id BIGINT UNSIGNED NOT NULL,
product_id INT UNSIGNED NOT NULL,
product_attribute_id BIGINT NULL,
amount INT NOT NULL,
amount INT UNSIGNED NOT NULL,
CONSTRAINT fk_carts_products_customer_carts FOREIGN KEY (cart_id) REFERENCES b2b_customer_carts (cart_id) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT fk_carts_products_product FOREIGN KEY (product_id) REFERENCES ps_product (id_product) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;