BEGIN TRANSACTION;

INSERT INTO library (name) VALUES
	('Abbaye-les-Bains'),
	('Alliance'),
	('Arlequin'),
	('Bibliothèque d''étude et du patrimoine'),
	('Kateb Yacine'),
	('Bibliothèque municipale internationale'),
	('Centre-Ville'),
	('Eaux-Claires'),
	('Fonds commun'),
	('Jardin de Ville'),
	('Saint-Bruno'),
	('Tesseire-Malherbe'),
	('Archives municipales'),
	('Musée de Grenoble');

INSERT INTO weekdays (dow, name) VALUES
	(0, 'Dimanche'),
	(1, 'Lundi'),
	(2, 'Mardi'),
	(3, 'Mercredi'),
	(4, 'Jeudi'),
	(5, 'Vendredi'),
	(6, 'Samedi');

INSERT INTO schedule (library, dow, holidays, start, end) VALUES
	('Bibliothèque d''étude et du patrimoine', 2, FALSE, '10:00:00', '19:00:00'),
	('Bibliothèque d''étude et du patrimoine', 3, FALSE, '10:00:00', '19:00:00'),
	('Bibliothèque d''étude et du patrimoine', 4, FALSE, '13:00:00', '19:00:00'),
	('Bibliothèque d''étude et du patrimoine', 5, FALSE, '10:00:00', '19:00:00'),
	('Bibliothèque d''étude et du patrimoine', 6, FALSE, '10:00:00', '18:00:00'),
	('Bibliothèque d''étude et du patrimoine', 2, TRUE, '13:00:00', '18:00:00'),
	('Bibliothèque d''étude et du patrimoine', 3, TRUE, '13:00:00', '18:00:00'),
	('Bibliothèque d''étude et du patrimoine', 4, TRUE, '13:00:00', '18:00:00'),
	('Bibliothèque d''étude et du patrimoine', 5, TRUE, '13:00:00', '18:00:00'),
	('Bibliothèque d''étude et du patrimoine', 6, TRUE, '13:00:00', '18:00:00'),
	('Bibliothèque municipale internationale', 2, FALSE, '17:00:00', '19:00:00'),
	('Bibliothèque municipale internationale', 3, FALSE, '13:00:00', '18:00:00'),
	('Bibliothèque municipale internationale', 4, FALSE, '17:00:00', '19:00:00'),
	('Bibliothèque municipale internationale', 5, FALSE, '17:00:00', '19:00:00'),
	('Bibliothèque municipale internationale', 6, NULL, '10:00:00', '13:00:00'),
	('Bibliothèque municipale internationale', 6, FALSE, '14:00:00', '17:00:00'),
	('Bibliothèque municipale internationale', 2, TRUE, '14:00:00', '18:00:00'),
	('Bibliothèque municipale internationale', 3, TRUE, '14:00:00', '18:00:00'),
	('Bibliothèque municipale internationale', 4, TRUE, '14:00:00', '18:00:00'),
	('Bibliothèque municipale internationale', 5, TRUE, '14:00:00', '18:00:00'),
	('Abbaye-les-Bains', 2, NULL, '13:00:00', '18:30:00'),
	('Abbaye-les-Bains', 3, NULL, '10:00:00', '13:00:00'),
	('Abbaye-les-Bains', 3, NULL, '14:00:00', '18:00:00'),
	('Abbaye-les-Bains', 4, NULL, '09:00:00', '12:00:00'),
	('Abbaye-les-Bains', 5, NULL, '13:00:00', '18:30:00'),
	('Abbaye-les-Bains', 6, NULL, '10:00:00', '13:00:00'),
	('Abbaye-les-Bains', 6, NULL, '14:00:00', '18:00:00'),
	('Archives municipales', 1, NULL, '13:00:00', '17:00:00'),
	('Archives municipales', 2, NULL, '13:00:00', '17:00:00'),
	('Archives municipales', 3, NULL, '13:00:00', '17:00:00'),
	('Archives municipales', 4, NULL, '09:00:00', '12:30:00'),
	('Archives municipales', 5, NULL, '09:00:00', '12:30:00'),
	('Musée de Grenoble', 1, NULL, '14:00:00', '18:00:00'),
	('Musée de Grenoble', 3, NULL, '14:00:00', '18:00:00'),
	('Musée de Grenoble', 4, NULL, '14:00:00', '18:00:00'),
	('Musée de Grenoble', 5, NULL, '14:00:00', '18:00:00'),
	('Kateb Yacine', 2, NULL, '11:00:00', '18:30:00'),
	('Kateb Yacine', 3, NULL, '11:00:00', '18:30:00'),
	('Kateb Yacine', 4, NULL, '11:00:00', '18:30:00'),
	('Kateb Yacine', 5, NULL, '11:00:00', '18:30:00'),
	('Kateb Yacine', 6, NULL, '11:00:00', '18:30:00'),
	('Centre-Ville', 2, NULL, '11:00:00', '18:30:00'),
	('Centre-Ville', 3, NULL, '11:00:00', '18:30:00'),
	('Centre-Ville', 4, NULL, '11:00:00', '18:30:00'),
	('Centre-Ville', 5, NULL, '11:00:00', '18:30:00'),
	('Centre-Ville', 6, NULL, '11:00:00', '18:30:00'),
	('Alliance', 2, NULL, '14:00:00', '19:00:00'),
	('Alliance', 3, NULL, '10:00:00', '13:00:00'),
	('Alliance', 3, NULL, '14:00:00', '18:00:00'),
	('Alliance', 6, NULL, '10:00:00', '13:00:00'),
	('Alliance', 6, NULL, '14:00:00', '18:00:00'),
	('Arlequin', 2, NULL, '13:00:00', '18:00:00'),
	('Arlequin', 3, NULL, '10:00:00', '13:00:00'),
	('Arlequin', 3, NULL, '14:00:00', '18:00:00'),
	('Arlequin', 5, NULL, '13:00:00', '18:00:00'),
	('Arlequin', 4, NULL, '09:00:00', '12:00:00'),
	('Arlequin', 6, NULL, '10:00:00', '13:00:00'),
	('Arlequin', 6, NULL, '14:00:00', '18:00:00'),
	('Eaux-Claires', 2, NULL, '13:00:00', '18:30:00'),
	('Eaux-Claires', 3, NULL, '10:00:00', '13:00:00'),
	('Eaux-Claires', 3, NULL, '14:00:00', '18:00:00'),
	('Eaux-Claires', 4, NULL, '09:00:00', '12:00:00'),
	('Eaux-Claires', 5, NULL, '13:00:00', '18:30:00'),
	('Eaux-Claires', 6, NULL, '10:00:00', '13:00:00'),
	('Eaux-Claires', 6, NULL, '14:00:00', '18:00:00'),
	('Jardin de Ville', 2, NULL, '16:00:00', '18:00:00'),
	('Jardin de Ville', 3, NULL, '10:00:00', '13:00:00'),
	('Jardin de Ville', 3, NULL, '14:00:00', '18:00:00'),
	('Jardin de Ville', 5, NULL, '16:00:00', '18:00:00'),
	('Jardin de Ville', 6, NULL, '10:00:00', '13:00:00'),
	('Jardin de Ville', 6, NULL, '14:00:00', '18:00:00'),
	('Tesseire-Malherbe', 2, NULL, '13:00:00', '18:30:00'),
	('Tesseire-Malherbe', 3, NULL, '10:00:00', '13:00:00'),
	('Tesseire-Malherbe', 3, NULL, '14:00:00', '18:00:00'),
	('Tesseire-Malherbe', 4, NULL, '09:00:00', '12:00:00'),
	('Tesseire-Malherbe', 5, NULL, '13:00:00', '18:30:00'),
	('Tesseire-Malherbe', 6, NULL, '10:00:00', '13:00:00'),
	('Tesseire-Malherbe', 6, NULL, '14:00:00', '18:00:00'),
	('Saint-Bruno', 2, NULL, '13:00:00', '18:30:00'),
	('Saint-Bruno', 3, NULL, '10:00:00', '13:00:00'),
	('Saint-Bruno', 3, NULL, '14:00:00', '18:00:00'),
	('Saint-Bruno', 4, NULL, '09:00:00', '12:00:00'),
	('Saint-Bruno', 5, NULL, '13:00:00', '18:30:00'),
	('Saint-Bruno', 6, NULL, '10:00:00', '13:00:00'),
	('Saint-Bruno', 6, NULL, '14:00:00', '18:00:00');

INSERT INTO holidays VALUES
	('2017-10-21', '2017-11-05', FALSE),
	('2017-12-23', '2018-01-07', FALSE),
	('2018-01-01', '2018-01-01', TRUE),
	('2018-02-10', '2018-02-25', FALSE),
	('2018-04-02', '2018-04-02', TRUE),
	('2018-04-07', '2018-04-22', FALSE),
	('2018-05-01', '2018-05-01', TRUE),
	('2018-05-08', '2018-05-08', TRUE),
	('2018-05-10', '2018-05-10', TRUE),
	('2018-05-21', '2018-05-21', TRUE),
	('2018-07-07', '2018-09-02', FALSE),
	('2018-07-14', '2018-07-14', TRUE),
	('2018-08-15', '2018-08-15', TRUE),
	('2018-10-20', '2018-11-04', FALSE),
	('2018-11-01', '2018-11-01', TRUE),
	('2018-11-11', '2018-11-11', TRUE),
	('2018-12-22', '2019-01-06', FALSE),
	('2018-12-25', '2018-12-25', TRUE),
	('2019-01-01', '2019-01-01', TRUE),
	('2019-02-16', '2019-03-03', FALSE),
	('2019-04-13', '2019-04-28', FALSE),
	('2019-04-22', '2019-04-22', TRUE),
	('2019-05-01', '2019-05-01', TRUE),
	('2019-05-08', '2019-05-08', TRUE),
	('2019-05-29', '2019-06-02', FALSE),
	('2019-05-30', '2019-05-30', TRUE),
	('2019-06-10', '2019-06-10', TRUE),
	('2019-07-06', '2019-09-01', FALSE),
	('2019-07-14', '2019-07-14', TRUE),
	('2019-08-15', '2019-08-15', TRUE),
	('2019-10-19', '2019-11-03', FALSE),
	('2019-11-01', '2019-11-01', TRUE),
	('2019-11-11', '2019-11-11', TRUE),
	('2019-12-21', '2020-01-05', FALSE),
	('2019-12-25', '2019-12-25', TRUE),
	('2020-01-01', '2020-01-01', TRUE),
	('2020-02-22', '2020-03-08', FALSE),
	('2020-04-13', '2020-04-13', TRUE),
	('2020-04-18', '2020-05-03', FALSE),
	('2020-05-01', '2020-05-01', TRUE),
	('2020-05-08', '2020-05-08', TRUE),
	('2020-05-20', '2020-05-24', FALSE),
	('2020-05-21', '2020-05-21', TRUE),
	('2020-06-01', '2020-06-01', TRUE),
	('2020-07-04', '2020-08-31', FALSE),
	('2020-07-14', '2020-07-14', TRUE),
	('2020-08-15', '2020-08-15', TRUE),
	('2020-10-17', '2020-11-01', FALSE),
	('2020-11-01', '2020-11-01', TRUE),
	('2020-11-11', '2020-11-11', TRUE),
	('2020-12-19', '2021-01-03', FALSE),
	('2020-12-25', '2020-12-25', TRUE),
	('2021-01-01', '2021-01-01', TRUE),
	('2021-02-06', '2021-02-21', FALSE),
	('2021-04-05', '2021-04-05', TRUE),
	('2021-04-10', '2021-04-25', FALSE),
	('2021-05-01', '2021-05-01', TRUE),
	('2021-05-08', '2021-05-08', TRUE),
	('2021-05-13', '2021-05-16', FALSE),
	('2021-05-13', '2021-05-13', TRUE),
	('2021-05-24', '2021-05-24', TRUE),
	('2021-07-06', '2021-09-01', FALSE),
	('2021-07-14', '2021-07-14', TRUE),
	('2021-08-15', '2021-08-15', TRUE),
	('2021-10-23', '2021-11-07', FALSE),
	('2021-11-01', '2021-11-01', TRUE),
	('2021-11-11', '2021-11-11', TRUE),
	('2021-12-18', '2022-01-02', FALSE),
	('2021-12-25', '2021-12-25', TRUE),
	('2022-01-01', '2022-01-01', TRUE),
	('2022-02-12', '2022-02-27', FALSE),
	('2022-04-16', '2022-05-01', FALSE),
	('2022-04-18', '2022-04-18', TRUE),
	('2022-05-01', '2022-05-01', TRUE),
	('2022-05-08', '2022-05-08', TRUE),
	('2022-05-26', '2022-05-27', FALSE),
	('2022-05-26', '2022-05-26', TRUE),
	('2022-06-06', '2022-06-06', TRUE),
	('2022-07-07', '2022-08-31', FALSE),
	('2022-07-14', '2022-07-14', TRUE),
	('2022-08-15', '2022-08-15', TRUE),
	('2022-10-22', '2022-11-06', FALSE),
	('2022-11-01', '2022-11-01', TRUE),
	('2022-11-11', '2022-11-11', TRUE),
	('2022-12-17', '2023-01-02', FALSE),
	('2022-12-25', '2022-12-25', TRUE),
	('2023-01-01', '2023-01-01', TRUE),
	('2023-02-04', '2023-02-19', FALSE),
	('2023-04-08', '2023-04-23', FALSE),
	('2023-04-10', '2023-04-10', TRUE),
	('2023-05-01', '2023-05-01', TRUE),
	('2023-05-08', '2023-05-08', TRUE),
	('2023-05-18', '2023-05-21', FALSE),
	('2023-05-18', '2023-05-18', TRUE),
	('2023-05-29', '2023-05-29', TRUE),
	('2023-07-08', '2023-09-03', FALSE),
	('2023-07-14', '2023-07-14', TRUE),
	('2023-08-15', '2023-08-15', TRUE),
	('2023-10-21', '2023-11-05', FALSE),
	('2023-11-01', '2023-11-01', TRUE),
	('2023-11-11', '2023-11-11', TRUE),
	('2023-12-23', '2024-01-07', FALSE),
	('2023-12-25', '2023-12-25', TRUE),
	('2024-01-01', '2024-01-01', TRUE),
	('2024-02-17', '2024-03-03', FALSE),
	('2024-04-01', '2024-04-01', TRUE),
	('2024-04-13', '2024-04-28', FALSE),
	('2024-05-01', '2024-05-01', TRUE),
	('2024-05-08', '2024-05-08', TRUE),
	('2024-05-09', '2024-05-09', TRUE),
	('2024-05-10', '2024-05-10', FALSE),
	('2024-05-20', '2024-05-20', TRUE),
	('2024-07-06', '2024-09-01', FALSE),
	('2024-07-14', '2024-07-14', TRUE),
	('2024-08-15', '2024-08-15', TRUE),
	('2024-10-19', '2024-11-03', FALSE),
	('2024-11-01', '2024-11-01', TRUE),
	('2024-11-11', '2024-11-11', TRUE),
	('2024-12-21', '2025-01-05', FALSE),
	('2024-12-25', '2024-12-25', TRUE),
	('2025-01-01', '2025-01-01', TRUE),
	('2025-02-22', '2025-03-09', FALSE),
	('2025-04-19', '2025-05-04', FALSE),
	('2025-04-21', '2025-04-21', TRUE),
	('2025-05-01', '2025-05-01', TRUE),
	('2025-05-08', '2025-05-08', TRUE),
	('2025-05-29', '2025-05-29', TRUE),
	('2025-05-30', '2025-05-30', FALSE),
	('2025-06-09', '2025-06-09', TRUE),
	('2025-07-05', '2025-08-31', FALSE),
	('2025-07-14', '2025-07-14', TRUE),
	('2025-08-15', '2025-08-15', TRUE),
	('2025-10-18', '2025-11-02', FALSE),
	('2025-11-01', '2025-11-01', TRUE),
	('2025-11-11', '2025-11-11', TRUE),
	('2025-12-20', '2026-01-04', FALSE),
	('2025-12-25', '2025-12-25', TRUE),
	('2026-01-01', '2026-01-01', TRUE),
	('2026-02-07', '2026-02-22', FALSE),
	('2026-04-04', '2026-04-19', FALSE),
	('2026-04-06', '2026-04-06', TRUE),
	('2026-05-01', '2026-05-01', TRUE),
	('2026-05-08', '2026-05-08', TRUE),
	('2026-05-14', '2026-05-14', TRUE),
	('2026-05-15', '2026-05-15', FALSE),
	('2026-05-25', '2026-05-25', TRUE),
	('2026-07-14', '2026-07-14', TRUE),
	('2026-08-15', '2026-08-15', TRUE),
	('2026-11-01', '2026-11-01', TRUE),
	('2026-11-11', '2026-11-11', TRUE),
	('2026-12-25', '2026-12-25', TRUE),
	('2027-01-01', '2027-01-01', TRUE),
	('2027-03-29', '2027-03-29', TRUE),
	('2027-05-01', '2027-05-01', TRUE),
	('2027-05-06', '2027-05-06', TRUE),
	('2027-05-08', '2027-05-08', TRUE),
	('2027-05-17', '2027-05-17', TRUE),
	('2027-07-14', '2027-07-14', TRUE),
	('2027-08-15', '2027-08-15', TRUE),
	('2027-11-01', '2027-11-01', TRUE),
	('2027-11-11', '2027-11-11', TRUE),
	('2027-12-25', '2027-12-25', TRUE),
	('2028-01-01', '2028-01-01', TRUE),
	('2028-04-17', '2028-04-17', TRUE),
	('2028-05-01', '2028-05-01', TRUE),
	('2028-05-08', '2028-05-08', TRUE),
	('2028-05-25', '2028-05-25', TRUE),
	('2028-06-05', '2028-06-05', TRUE),
	('2028-07-14', '2028-07-14', TRUE),
	('2028-08-15', '2028-08-15', TRUE),
	('2028-11-01', '2028-11-01', TRUE),
	('2028-11-11', '2028-11-11', TRUE),
	('2028-12-25', '2028-12-25', TRUE);

COMMIT;
