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,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_inflow_record]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_inflow_record];
GO
CREATE PROCEDURE [Procedures].[delete_product_inflow_record]
@product_inflow_record_id AS INT
AS
DELETE FROM [Tables].[product_inflow_records]
WHERE [id] = @product_inflow_record_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_type]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_type];
GO
CREATE PROCEDURE [Procedures].[delete_product_type]
@product_type_id AS INT
AS
DELETE FROM [Tables].[product_types]
WHERE [id] = @product_type_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_write_off_record]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_write_off_record];
GO
CREATE PROCEDURE [Procedures].[delete_product_write_off_record]
@product_write_off_record_id AS INT
AS
DELETE FROM [Tables].[product_write_off_records]
WHERE [id] = @product_write_off_record_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_attribute]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_attribute];
GO
CREATE PROCEDURE [Procedures].[delete_attribute]
@attribute_id AS INT
AS
DELETE FROM [Tables].[attributes]
WHERE [id] = @attribute_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_price_history_record]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_price_history_record];
GO
CREATE PROCEDURE [Procedures].[delete_price_history_record]
@price_history_record_id AS INT
AS
DELETE FROM [Tables].[price_history_records]
WHERE [id] = @price_history_record_id;
GO
@@ -0,0 +1,13 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_attribute]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_attribute];
GO
CREATE PROCEDURE [Procedures].[delete_product_attribute]
@product_id AS INT,
@product_attribute_id AS INT
AS
DELETE FROM [Tables].[product_attributes]
WHERE [product_id] = @product_attribute_id
AND [attribute_id] = @product_attribute_id
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_outflow_record]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_outflow_record];
GO
CREATE PROCEDURE [Procedures].[delete_product_outflow_record]
@product_outflow_record_id AS INT
AS
DELETE FROM [Tables].[product_outflow_records]
WHERE [id] = @product_outflow_record_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_product_value]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_product_value];
GO
CREATE PROCEDURE [Procedures].[delete_product_value]
@product_value_id AS INT
AS
DELETE FROM [Tables].[product_values]
WHERE [id] = @product_value_id;
GO
@@ -0,0 +1,11 @@
USE [Database]
IF OBJECT_ID('[Procedures].[delete_supplier]', 'P') IS NOT NULL
DROP PROCEDURE [Procedures].[delete_supplier];
GO
CREATE PROCEDURE [Procedures].[delete_supplier]
@supplier_id AS INT
AS
DELETE FROM [Tables].[suppliers]
WHERE [id] = @supplier_id;
GO