diff --git a/src/assets/sql/data.sql b/src/assets/sql/data.sql index 88569d84..ac3d5173 100644 --- a/src/assets/sql/data.sql +++ b/src/assets/sql/data.sql @@ -1,4 +1,14 @@ -INSERT INTO ea_settings (name, value) VALUES +INSERT INTO `ea_roles` (`id`, `name`, `slug`, `is_admin`, `appointments`, `customers`, `services`, `users`, `system_settings`, `user_settings`) +VALUES + (1, 'Administrator', 'admin', 1, 15, 15, 15, 15, 15, 15), + (2, 'Provider', 'provider', 0, 15, 15, 0, 0, 0, 15), + (3, 'Customer', 'customer', 0, 0, 0, 0, 0, 0, 0), + (4, 'Secretary', 'secretary', 0, 15, 15, 0, 0, 0, 15); + +INSERT INTO `ea_settings` (`name`, `value`) VALUES + ('company_working_plan', + '{"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"saturday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"sunday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]}}'), + ('book_advance_timeout', '30'), ('google_analytics_code', ''), ('customer_notifications', '1'), ('date_format', 'DMY'), diff --git a/src/assets/sql/structure.sql b/src/assets/sql/structure.sql index 65681657..8dcff464 100644 --- a/src/assets/sql/structure.sql +++ b/src/assets/sql/structure.sql @@ -145,13 +145,3 @@ ALTER TABLE `ea_users` ALTER TABLE `ea_user_settings` ADD CONSTRAINT `ea_user_settings_ibfk_1` FOREIGN KEY (`id_users`) REFERENCES `ea_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; - -INSERT INTO `ea_roles` (`id`, `name`, `slug`, `is_admin`, `appointments`, `customers`, `services`, `users`, `system_settings`, `user_settings`) VALUES -(1, 'Administrator', 'admin', 1, 15, 15, 15, 15, 15, 15), -(2, 'Provider', 'provider', 0, 15, 15, 0, 0, 0, 15), -(3, 'Customer', 'customer', 0, 0, 0, 0, 0, 0, 0), -(4, 'Secretary', 'secretary', 0, 15, 15, 0, 0, 0, 15); - -INSERT INTO `ea_settings` (`name`, `value`) VALUES -('company_working_plan', '{"monday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"tuesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"wednesday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"thursday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"friday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"saturday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]},"sunday":{"start":"09:00","end":"18:00","breaks":[{"start":"11:20","end":"11:30"},{"start":"14:30","end":"15:00"}]}}'), -('book_advance_timeout', '30');