-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `biomed_hose_assembly`
--

-- --------------------------------------------------------

--
-- Table structure for table `assembly`
--

CREATE TABLE `assembly` (
  `id` bigint NOT NULL,
  `gas_id` int NOT NULL,
  `standard_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly`
--

INSERT INTO `assembly` (`id`, `gas_id`, `standard_id`, `created_at`) VALUES
(5, 1, 1, '2026-01-20 14:52:54');

-- --------------------------------------------------------

--
-- Table structure for table `assembly_hose_type`
--

CREATE TABLE `assembly_hose_type` (
  `assembly_id` bigint NOT NULL,
  `hose_type_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly_hose_type`
--

INSERT INTO `assembly_hose_type` (`assembly_id`, `hose_type_id`) VALUES
(5, 5),
(5, 6);

-- --------------------------------------------------------

--
-- Table structure for table `assembly_inlet`
--

CREATE TABLE `assembly_inlet` (
  `assembly_id` bigint NOT NULL,
  `inlet_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly_inlet`
--

INSERT INTO `assembly_inlet` (`assembly_id`, `inlet_id`) VALUES
(5, 5),
(5, 6),
(5, 7);

-- --------------------------------------------------------

--
-- Table structure for table `assembly_length`
--

CREATE TABLE `assembly_length` (
  `assembly_id` bigint NOT NULL,
  `length_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly_length`
--

INSERT INTO `assembly_length` (`assembly_id`, `length_id`) VALUES
(5, 8),
(5, 9),
(5, 10),
(5, 11),
(5, 12),
(5, 13),
(5, 14),
(5, 15),
(5, 16);

-- --------------------------------------------------------

--
-- Table structure for table `assembly_outlet`
--

CREATE TABLE `assembly_outlet` (
  `assembly_id` bigint NOT NULL,
  `outlet_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly_outlet`
--

INSERT INTO `assembly_outlet` (`assembly_id`, `outlet_id`) VALUES
(5, 1),
(5, 5),
(5, 6);

-- --------------------------------------------------------

--
-- Table structure for table `assembly_swivel`
--

CREATE TABLE `assembly_swivel` (
  `assembly_id` bigint NOT NULL,
  `swivel_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `assembly_swivel`
--

INSERT INTO `assembly_swivel` (`assembly_id`, `swivel_id`) VALUES
(5, 2),
(5, 3);

-- --------------------------------------------------------

--
-- Table structure for table `gases`
--

CREATE TABLE `gases` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `prefix` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `gases`
--

INSERT INTO `gases` (`id`, `code`, `label`, `image`, `prefix`) VALUES
(1, '7', 'CO2\r\n', 'CO2_1769095918570.png', ' '),
(4, '2', 'Nitrogen', 'Nitrogen_1769093289223.png', ' ');

-- --------------------------------------------------------

--
-- Table structure for table `hose_assembly_requests`
--

CREATE TABLE `hose_assembly_requests` (
  `id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` enum('new','processed','archived') NOT NULL DEFAULT 'new',
  `customer_name` varchar(255) NOT NULL,
  `customer_email` varchar(255) NOT NULL,
  `customer_mobile` varchar(50) NOT NULL,
  `hose_standard_id` int UNSIGNED DEFAULT NULL,
  `hose_standard_code` varchar(100) DEFAULT NULL,
  `hose_standard_label` varchar(255) DEFAULT NULL,
  `hose_gas_id` int UNSIGNED DEFAULT NULL,
  `hose_gas_code` varchar(100) DEFAULT NULL,
  `hose_gas_label` varchar(255) DEFAULT NULL,
  `hose_gas_prefix` varchar(50) DEFAULT NULL,
  `hose_type_id` int UNSIGNED DEFAULT NULL,
  `hose_type_code` varchar(100) DEFAULT NULL,
  `hose_type_label` varchar(255) DEFAULT NULL,
  `hose_type_prefix` varchar(50) DEFAULT NULL,
  `hose_swivel_id` int UNSIGNED DEFAULT NULL,
  `hose_swivel_code` varchar(100) DEFAULT NULL,
  `hose_swivel_label` varchar(255) DEFAULT NULL,
  `hose_swivel_prefix` varchar(50) DEFAULT NULL,
  `hose_inlet_id` int UNSIGNED DEFAULT NULL,
  `hose_inlet_code` varchar(100) DEFAULT NULL,
  `hose_inlet_label` varchar(255) DEFAULT NULL,
  `hose_inlet_prefix` varchar(50) DEFAULT NULL,
  `hose_outlet_id` int UNSIGNED DEFAULT NULL,
  `hose_outlet_code` varchar(100) DEFAULT NULL,
  `hose_outlet_label` varchar(255) DEFAULT NULL,
  `hose_outlet_prefix` varchar(50) DEFAULT NULL,
  `hose_length_id` int UNSIGNED DEFAULT NULL,
  `hose_length_code` varchar(100) DEFAULT NULL,
  `hose_length_label` varchar(255) DEFAULT NULL,
  `hose_length_value_ft` float DEFAULT NULL,
  `quantity` int UNSIGNED NOT NULL DEFAULT '1',
  `payload_json` json DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `hose_assembly_requests`
--

INSERT INTO `hose_assembly_requests` (`id`, `created_at`, `updated_at`, `status`, `customer_name`, `customer_email`, `customer_mobile`, `hose_standard_id`, `hose_standard_code`, `hose_standard_label`, `hose_gas_id`, `hose_gas_code`, `hose_gas_label`, `hose_gas_prefix`, `hose_type_id`, `hose_type_code`, `hose_type_label`, `hose_type_prefix`, `hose_swivel_id`, `hose_swivel_code`, `hose_swivel_label`, `hose_swivel_prefix`, `hose_inlet_id`, `hose_inlet_code`, `hose_inlet_label`, `hose_inlet_prefix`, `hose_outlet_id`, `hose_outlet_code`, `hose_outlet_label`, `hose_outlet_prefix`, `hose_length_id`, `hose_length_code`, `hose_length_label`, `hose_length_value_ft`, `quantity`, `payload_json`) VALUES
(1, '2026-02-16 13:54:20', '2026-02-16 13:54:20', 'new', 'Innoppl Test', 'test@gmail.com', '2312321323', 1, 'USA', 'USA', 1, '7', 'CO2\r\n', ' ', 5, '10', 'Conductive (1/4\")', ' ', 2, 'S', 'Yes', 'S', 7, 'H0', 'Ohmeda Adaptor', ' ', 1, '40', 'DISS Male Adaptor w/ Grip\r\n', '', 11, '48', '4 Foot', 4, 3, '{\"customer\": {\"name\": \"Innoppl Test\", \"email\": \"test@gmail.com\", \"mobile\": \"2312321323\"}, \"hose_gas\": \"1\", \"quantity\": \"3\", \"hose_type\": \"5\", \"hose_inlet\": \"7\", \"hose_length\": \"11\", \"hose_outlet\": \"1\", \"hose_swivel\": \"2\", \"hose_standard\": \"1\"}'),
(2, '2026-02-17 15:04:35', '2026-02-20 13:57:57', 'processed', 'Test', 'test@gmail.com', '2312321323', 1, 'USA', 'USA', 1, '7', 'CO2\r\n', ' ', 5, '10', 'Conductive (1/4\")', ' ', 2, 'S', 'Yes', 'S', 7, 'H0', 'Ohmeda Adaptor', ' ', 1, '40', 'DISS Male Adaptor w/ Grip\r\n', '', 12, '60', '5 Foot', 5, 1, '{\"customer\": {\"name\": \"Test\", \"email\": \"test@gmail.com\", \"mobile\": \"2312321323\"}, \"hose_gas\": \"1\", \"quantity\": \"1\", \"hose_type\": \"5\", \"hose_inlet\": \"7\", \"hose_length\": \"12\", \"hose_outlet\": \"1\", \"hose_swivel\": \"2\", \"hose_standard\": \"1\"}'),
(3, '2026-02-23 14:40:13', '2026-02-24 19:39:58', 'archived', 'Innoppl Test', 'test@gmail.com', '2312321323', 1, 'USA', 'USA', 1, '7', 'CO2\r\n', ' ', 5, '10', 'Conductive (1/4\")', ' ', 2, 'S', 'Yes', 'S', 7, 'H0', 'Ohmeda Adaptor', ' ', 1, '40', 'DISS Male Adaptor w/ Grip\r\n', '', 10, '36', '3 Foot', 3, 1, '{\"customer\": {\"name\": \"Innoppl Test\", \"email\": \"test@gmail.com\", \"mobile\": \"2312321323\"}, \"hose_gas\": \"1\", \"quantity\": \"1\", \"hose_type\": \"5\", \"hose_inlet\": \"7\", \"hose_length\": \"10\", \"hose_outlet\": \"1\", \"hose_swivel\": \"2\", \"hose_standard\": \"1\"}');

-- --------------------------------------------------------

--
-- Table structure for table `hose_standards`
--

CREATE TABLE `hose_standards` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `hose_standards`
--

INSERT INTO `hose_standards` (`id`, `code`, `label`, `image`) VALUES
(1, 'USA', 'USA', 'USA_1767805155311.jpg');

-- --------------------------------------------------------

--
-- Table structure for table `hose_types`
--

CREATE TABLE `hose_types` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `prefix` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `hose_types`
--

INSERT INTO `hose_types` (`id`, `code`, `label`, `image`, `prefix`) VALUES
(5, '10', 'Conductive (1/4\")', 'ferrule-small_1767805306987.jpg', ' '),
(6, '30', 'Non-Conductive (1/4\")', 'ferrule-small_1767805333258.jpg', ' ');

-- --------------------------------------------------------

--
-- Table structure for table `inlets`
--

CREATE TABLE `inlets` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `prefix` varchar(50) DEFAULT NULL,
  `is_swivel_compatible` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `inlets`
--

INSERT INTO `inlets` (`id`, `code`, `label`, `image`, `prefix`, `is_swivel_compatible`) VALUES
(5, '42', 'DISS Female, Hand-tight Nut', '0817HT_2_1770125601938.jpg', ' ', 0),
(6, '45', 'DISS Female, Hex Nut', '1617_1770124835896.jpg', ' ', 0),
(7, 'H0', 'Ohmeda Adaptor', 'OH-108-17_1770118892824.jpg', ' ', 1);

-- --------------------------------------------------------

--
-- Table structure for table `lengths`
--

CREATE TABLE `lengths` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `value_ft` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `lengths`
--

INSERT INTO `lengths` (`id`, `code`, `label`, `value_ft`) VALUES
(8, '12', '1 foot', 1),
(9, '24', '2 Foot', 2),
(10, '36', '3 Foot', 3),
(11, '48', '4 Foot', 4),
(12, '60', '5 Foot', 5),
(13, '72', '6 Foot', 6),
(14, '84', '7 Foot', 7),
(15, '96', '8 Foot', 8),
(16, '108', '9 Foot', 9),
(17, '120', '10 Foot', 10);

-- --------------------------------------------------------

--
-- Table structure for table `outlets`
--

CREATE TABLE `outlets` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `prefix` varchar(50) DEFAULT NULL,
  `is_swivel_compatible` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `outlets`
--

INSERT INTO `outlets` (`id`, `code`, `label`, `image`, `prefix`, `is_swivel_compatible`) VALUES
(1, '40', 'DISS Male Adaptor w/ Grip\r\n', '1081-17HT_1770124657350.jpg', '', 0),
(5, '42', 'DISS Female, Hand-tight Nut', 'Outlet_1769097643871.png', ' ', 0),
(6, '92', '1/8 NPT Female Pipe Thread', 'MPT-24_1770124727714.jpg', ' ', 0);

-- --------------------------------------------------------

--
-- Table structure for table `storeUsers`
--

CREATE TABLE `storeUsers` (
  `id` int UNSIGNED NOT NULL,
  `userId` int NOT NULL,
  `storeHash` varchar(10) NOT NULL,
  `isAdmin` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `storeUsers`
--

INSERT INTO `storeUsers` (`id`, `userId`, `storeHash`, `isAdmin`) VALUES
(14, 1485216, '3s6u0rrdkl', 0);

-- --------------------------------------------------------

--
-- Table structure for table `swivels`
--

CREATE TABLE `swivels` (
  `id` int UNSIGNED NOT NULL,
  `code` varchar(100) NOT NULL,
  `label` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `prefix` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `swivels`
--

INSERT INTO `swivels` (`id`, `code`, `label`, `image`, `prefix`) VALUES
(2, 'S', 'Yes', 'Swivel_1769096520502.png', 'S'),
(3, ' ', 'No', 'empty_1770124564979.png', ' ');

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int UNSIGNED NOT NULL,
  `userId` int NOT NULL,
  `email` text NOT NULL,
  `username` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `userId`, `email`, `username`) VALUES
(9, 2445891, 'phil@thebiomedguys.com', 'phil@thebiomedguys.com'),
(14, 1485216, 'karthik@thecommerceshop.com', NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `assembly`
--
ALTER TABLE `assembly`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `assembly_hose_type`
--
ALTER TABLE `assembly_hose_type`
  ADD PRIMARY KEY (`assembly_id`,`hose_type_id`),
  ADD KEY `fk_assembly_hose_hose_type` (`hose_type_id`);

--
-- Indexes for table `assembly_inlet`
--
ALTER TABLE `assembly_inlet`
  ADD PRIMARY KEY (`assembly_id`,`inlet_id`),
  ADD KEY `fk_assembly_inlet_inlet` (`inlet_id`);

--
-- Indexes for table `assembly_length`
--
ALTER TABLE `assembly_length`
  ADD PRIMARY KEY (`assembly_id`,`length_id`),
  ADD KEY `fk_assembly_length_length` (`length_id`);

--
-- Indexes for table `assembly_outlet`
--
ALTER TABLE `assembly_outlet`
  ADD PRIMARY KEY (`assembly_id`,`outlet_id`),
  ADD KEY `fk_assembly_outlet_outlet` (`outlet_id`);

--
-- Indexes for table `assembly_swivel`
--
ALTER TABLE `assembly_swivel`
  ADD PRIMARY KEY (`assembly_id`,`swivel_id`),
  ADD KEY `fk_assembly_swivel_swivel` (`swivel_id`);

--
-- Indexes for table `gases`
--
ALTER TABLE `gases`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `hose_assembly_requests`
--
ALTER TABLE `hose_assembly_requests`
  ADD PRIMARY KEY (`id`),
  ADD KEY `idx_created_at` (`created_at`),
  ADD KEY `idx_status` (`status`),
  ADD KEY `idx_customer_email` (`customer_email`);

--
-- Indexes for table `hose_standards`
--
ALTER TABLE `hose_standards`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `hose_types`
--
ALTER TABLE `hose_types`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `inlets`
--
ALTER TABLE `inlets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `lengths`
--
ALTER TABLE `lengths`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `outlets`
--
ALTER TABLE `outlets`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `storeUsers`
--
ALTER TABLE `storeUsers`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `userId` (`userId`,`storeHash`);

--
-- Indexes for table `swivels`
--
ALTER TABLE `swivels`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `userId` (`userId`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `assembly`
--
ALTER TABLE `assembly`
  MODIFY `id` bigint NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `gases`
--
ALTER TABLE `gases`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `hose_assembly_requests`
--
ALTER TABLE `hose_assembly_requests`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `hose_standards`
--
ALTER TABLE `hose_standards`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `hose_types`
--
ALTER TABLE `hose_types`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `inlets`
--
ALTER TABLE `inlets`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `lengths`
--
ALTER TABLE `lengths`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `outlets`
--
ALTER TABLE `outlets`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `storeUsers`
--
ALTER TABLE `storeUsers`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `swivels`
--
ALTER TABLE `swivels`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `assembly_hose_type`
--
ALTER TABLE `assembly_hose_type`
  ADD CONSTRAINT `fk_assembly_hose` FOREIGN KEY (`assembly_id`) REFERENCES `assembly` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fk_assembly_hose_hose_type` FOREIGN KEY (`hose_type_id`) REFERENCES `hose_types` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assembly_inlet`
--
ALTER TABLE `assembly_inlet`
  ADD CONSTRAINT `fk_assembly_inlet` FOREIGN KEY (`assembly_id`) REFERENCES `assembly` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fk_assembly_inlet_inlet` FOREIGN KEY (`inlet_id`) REFERENCES `inlets` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assembly_length`
--
ALTER TABLE `assembly_length`
  ADD CONSTRAINT `fk_assembly_length` FOREIGN KEY (`assembly_id`) REFERENCES `assembly` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fk_assembly_length_length` FOREIGN KEY (`length_id`) REFERENCES `lengths` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assembly_outlet`
--
ALTER TABLE `assembly_outlet`
  ADD CONSTRAINT `fk_assembly_outlet` FOREIGN KEY (`assembly_id`) REFERENCES `assembly` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fk_assembly_outlet_outlet` FOREIGN KEY (`outlet_id`) REFERENCES `outlets` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assembly_swivel`
--
ALTER TABLE `assembly_swivel`
  ADD CONSTRAINT `fk_assembly_swivel` FOREIGN KEY (`assembly_id`) REFERENCES `assembly` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `fk_assembly_swivel_swivel` FOREIGN KEY (`swivel_id`) REFERENCES `swivels` (`id`) ON DELETE CASCADE;
COMMIT;

