Initial commit

This commit is contained in:
user
2026-07-12 13:56:05 +04:00
commit 04bf3a4b58
850 changed files with 9057 additions and 0 deletions
@@ -0,0 +1,17 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product];
GO
CREATE PROCEDURE [Procedures].[delete_product]
@product_id AS INT
AS
BEGIN TRANSACTION;
DELETE FROM [Tables].[product_values]
WHERE [product_id] = @product_id;
DELETE FROM [Tables].[product_attributes]
WHERE [product_id] = @product_id;
DELETE FROM [Tables].[products]
WHERE [id] = @product_id;
COMMIT TRANSACTION;
GO