CREATE TABLE IF NOT EXISTS `companies` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT IGNORE INTO `companies` (`id`, `name`) VALUES
(1, 'TEST'),
(2, 'QWERTY INC.');
CREATE TABLE IF NOT EXISTS `schedule` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(10) unsigned NOT NULL,
`day_of_week` tinyint(1) unsigned NOT NULL,
`start_time` time DEFAULT NULL,
`end_time` time DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT IGNORE INTO `schedule` (`id`, `company_id`, `day_of_week`, `start_time`, `end_time`) VALUES
(1, 1, 1, '06:00:00', '21:00:00'),
(2, 2, 1, '03:00:00', '17:00:00');
CREATE TABLE IF NOT EXISTS `breaks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(10) unsigned NOT NULL,
`day_of_week` tinyint(1) unsigned NOT NULL,
`break_start` time DEFAULT NULL,
`break_end` time DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT IGNORE INTO `breaks` (`id`, `company_id`, `day_of_week`, `break_start`, `break_end`) VALUES
(1, 1, 1, '12:00:00', '13:00:00'),
(2, 1, 1, '17:00:00', '18:00:00'),
(3, 2, 1, '08:00:00', '08:15:00');