Initial commit

This commit is contained in:
Marcelo
2025-11-20 15:27:34 -06:00
commit cc72c9fc5d
3221 changed files with 737477 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
-- Migration script for mold_presets table
-- Run this script in your MariaDB database: machine_data
CREATE TABLE IF NOT EXISTS `mold_presets` (
`id` INT NOT NULL AUTO_INCREMENT,
`mold_name` VARCHAR(255) NOT NULL,
`manufacturer` VARCHAR(100) NOT NULL,
`theoretical_cavities` INT NOT NULL,
`functional_cavities` INT NOT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
INDEX `idx_manufacturer` (`manufacturer`),
INDEX `idx_mold_name` (`mold_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Insert seed data
INSERT INTO `mold_presets` (`mold_name`, `manufacturer`, `theoretical_cavities`, `functional_cavities`) VALUES
('Mold ABC', 'Nissan', 10, 8),
('Mold XYZ', 'Toyota', 12, 10),
('Mold DEF', 'Honda', 8, 7),
('Mold GHI', 'Ford', 16, 14),
('Mold JKL', 'BMW', 6, 6),
('Mold MNO', 'Nissan', 14, 12),
('Mold PQR', 'Toyota', 10, 9),
('Mold STU', 'Honda', 12, 11),
('Mold VWX', 'Ford', 8, 8),
('Mold YZ1', 'BMW', 20, 18);