|
1
|
use salarymarket ;
|
|
2
|
-- initialise languages
|
|
3
|
INSERT INTO languages (id, language, tag) VALUES
|
|
4
|
(1, 'English', 'en'),
|
|
5
|
(2, 'French', 'fr');
|
|
6
|
-- initialise language solution
|
|
7
|
INSERT INTO solution_languages (id, active, defaultLanguage, languagesId) VALUES
|
|
8
|
(1, 'true', 0, '1'),
|
|
9
|
(2, 'true', 1, '2');
|
|
10
|
|
|
11
|
INSERT INTO solution_menu (id, menuCode, menuLibelle, parentMenu, menu_type, menu_position) VALUES
|
|
12
|
-- Home Section
|
|
13
|
(1, 'home', 'Home',NULL, 'menu',1),
|
|
14
|
(2, 'home_administration', 'Administration', 'home', 'subMenu',1),
|
|
15
|
(3, 'home_administration_clients', ' Number of Clients ', 'home_administration', 'widget',1),
|
|
16
|
(4, 'home_administration_secteurs', ' Clients per Sector', 'home_administration', 'widget',1),
|
|
17
|
(5, 'home_administration_subscription', 'Subscription per clients ', 'home_administration', 'widget',1),
|
|
18
|
(6, 'home_administrationemployees_per_region', 'Employees per Region', 'home_administration', 'widget',1),
|
|
19
|
(7, 'home_indicators', 'Indicators','home', 'subMenu',1),
|
|
20
|
(8, 'home_indicateurs_number_of_employees', 'Number of Employees', 'home_indicators', 'widget',1),
|
|
21
|
(9, 'home_administration_nbCollaborateursGender', 'Number of Employees by Gender', 'home_indicators', 'widget',1),
|
|
22
|
(10, 'home_indicateurs_payroll', 'Payroll','home_indicators', 'widget',1),
|
|
23
|
(11, 'home_indicateurs_average_salaries_by_career_path', 'Average Salaries by Career Path', 'home_indicators', 'widget',1),
|
|
24
|
(12, 'home_indicateurs_supervision_rate', 'Supervision Rate', 'home_indicators', 'widget',1),
|
|
25
|
|
|
26
|
-- Compensation Section
|
|
27
|
(13, 'company_compensation', 'Company Compensation', NULL, 'menu',1),
|
|
28
|
|
|
29
|
-- Quiz Section
|
|
30
|
(14, 'company_quiz', 'HR Policy and Practices', NULL, 'menu',0),
|
|
31
|
(15, 'quiz_current_sector', 'Quiz current Sector ','company_quiz', 'option',1),
|
|
32
|
(16, 'quiz_market', 'Quiz by Market', 'company_quiz', 'option',1),
|
|
33
|
(17, 'quiz_selected_sector', 'Quiz by Selected Sector', 'company_quiz', 'option',1),
|
|
34
|
|
|
35
|
-- Report Section
|
|
36
|
(18, 'report', 'Report', NULL, 'menu',0),
|
|
37
|
|
|
38
|
-- My Company Section
|
|
39
|
(19, 'myCompany', 'My Company', NULL, 'menu',1),
|
|
40
|
(20, 'myCompany_informations', 'Information', 'myCompany', 'menu',1),
|
|
41
|
(21, 'myCompany_users', 'Users', 'myCompany', 'menu',1),
|
|
42
|
(22, 'myCompany_entities', 'Entities', 'myCompany', 'menu',1),
|
|
43
|
(23, 'myCompany_profiles', 'Profiles','myCompany', 'menu',1),
|
|
44
|
(24, 'myCompany_configuration', 'Configuration', 'myCompany', 'menu',1),
|
|
45
|
(25, 'myCompany_settings', 'Settings', 'myCompany', 'menu',1),
|
|
46
|
(26, 'myCompany_settings_language', 'Language', 'myCompany_settings', 'subMenu',1),
|
|
47
|
|
|
48
|
-- My Clients Section
|
|
49
|
(27, 'myClients', 'My Clients', NULL, 'menu',1),
|
|
50
|
(28, 'myClients_clients', 'Clients', 'myClients', 'menu',1),
|
|
51
|
(29, 'client_informations', 'Information','myClients_clients', 'subMenu',1),
|
|
52
|
(30, 'client_users', 'Users', 'myClients_clients', 'subMenu',1),
|
|
53
|
(31, 'client_entities', 'Entities', 'myClients_clients', 'subMenu',1),
|
|
54
|
(32, 'client_profiles', 'Profiles', 'myClients_clients', 'subMenu',1),
|
|
55
|
(33, 'client_configuration', 'Configuration', 'myClients_clients', 'subMenu',1),
|
|
56
|
(34, 'myClients_prospection', 'Prospecting', 'myClients', 'menu',1),
|
|
57
|
|
|
58
|
-- Administration Section
|
|
59
|
(35, 'administration', 'Administration', NULL, 'menu',1),
|
|
60
|
(36, 'administration_settings', 'Settings', 'administration', 'menu',1),
|
|
61
|
(37, 'administration_settings_language', 'Language', 'administration_settings', 'subMenu',1),
|
|
62
|
(38, 'administration_settings_country', 'Country', 'administration_settings', 'subMenu',1),
|
|
63
|
(39, 'administration_settings_business-sector', 'Business Sector', 'administration_settings', 'subMenu',1),
|
|
64
|
(40, 'administration_settings_turnover', 'Turnover', 'administration_settings', 'subMenu',1),
|
|
65
|
(41, 'administration_settings_geographic-extent', 'Geographic Extent', 'administration_settings', 'subMenu',1),
|
|
66
|
(42, 'administration_settings_company-size', 'Company Size', 'administration_settings', 'subMenu',1),
|
|
67
|
(43, 'administration_settings_value-chain', 'Value Chain','administration_settings', 'subMenu',1),
|
|
68
|
(44, 'administration_entities', 'Entities', 'administration', 'menu',1),
|
|
69
|
(45, 'administration_subscription', 'Subscription', 'administration', 'menu',1);-- changer l'ordre
|
|
70
|
|
|
71
|
INSERT INTO solution_subscription (id,subscription_code,subscription_type) VALUES
|
|
72
|
(1,'on_the_menu','On The Menu'),
|
|
73
|
(2,'essential','Essential'),
|
|
74
|
(3,'advanced','Advanced');
|
|
75
|
|
|
76
|
-- Insert all rights for modules
|
|
77
|
INSERT INTO solution_menu_rights (right_code, right_label, menuCode) VALUES
|
|
78
|
-- Compensation
|
|
79
|
('compensation_create', 'Create', 'company_compensation'),
|
|
80
|
('compensation_export', 'Export', 'company_compensation'),
|
|
81
|
('compensation_import', 'Import', 'company_compensation'),
|
|
82
|
('compensation_search', 'Search', 'company_compensation'),
|
|
83
|
('compensation_configuration', 'Configuration', 'company_compensation'), -- NEW
|
|
84
|
('compensation_delete', 'Delete', 'company_compensation'),
|
|
85
|
('compensation_update', 'Update', 'company_compensation'),
|
|
86
|
('compensation_view' , 'View', 'company_compensation'),
|
|
87
|
-- HR Policy and Practices
|
|
88
|
('quiz_Submit', 'Submit', 'company_quiz'),
|
|
89
|
('quiz_View', 'View', 'company_quiz'),
|
|
90
|
-- Report
|
|
91
|
('report_create', 'Create', 'report'),
|
|
92
|
('report_View', 'View', 'report'),
|
|
93
|
('report_delete', 'Delete', 'report'),
|
|
94
|
('report_upload', 'Upload', 'report'),
|
|
95
|
-- Informations company
|
|
96
|
('company_Informations_update', 'Update', 'myCompany_informations'),
|
|
97
|
-- Users company
|
|
98
|
( 'company_user_create', 'Create', 'myCompany_users'),
|
|
99
|
('company_user_update', 'Update', 'myCompany_users'),
|
|
100
|
('company_user_delete', 'Delete', 'myCompany_users'),
|
|
101
|
('company_user_desactivate', 'Desactivate', 'myCompany_users'),
|
|
102
|
('company_user_activity', 'Activity', 'myCompany_users'),
|
|
103
|
-- Entities company
|
|
104
|
('company_entity_create', 'Create', 'myCompany_entitie'),
|
|
105
|
('company_entity_update', 'Update', 'myCompany_entitie'),
|
|
106
|
('company_entity_delete', 'Delete', 'myCompany_entitie'),
|
|
107
|
('company_entity_view', 'View', 'myCompany_entitie'),
|
|
108
|
|
|
109
|
-- Profiles company
|
|
110
|
('company_profil_Create', 'Create', 'myCompany_profiles'),
|
|
111
|
('company_profil_view', 'View', 'myCompany_profiles'),
|
|
112
|
('company_profil_update', 'Update', 'myCompany_profiles'),
|
|
113
|
('company_profil_delete', 'Delete', 'myCompany_profiles'),
|
|
114
|
-- Languages company
|
|
115
|
('company_language_activate', 'Activate', 'myCompany_settings_language');
|
|
116
|
INSERT INTO solution_setting_country (id, code, active) VALUES
|
|
117
|
(1, 'TN', 1),
|
|
118
|
(2, 'FR', 1);
|
|
119
|
INSERT INTO solution_setting_country_translate (id, label, countryCode, languageId) VALUES
|
|
120
|
(1, 'Tunisia', 'TN', 1), -- Traduction en anglais pour le pays TN
|
|
121
|
(2, 'Tunisie', 'TN', 2), -- Traduction en français pour le pays TN
|
|
122
|
(3, 'France', 'FR', 1), -- Traduction en anglais pour le pays FR
|
|
123
|
(4, 'France', 'FR', 2); -- Traduction en français pour le pays FR
|
|
124
|
INSERT INTO solution_setting_business_sector (id, code) VALUES
|
|
125
|
(1, 'BS001'),
|
|
126
|
(2, 'BS002'),
|
|
127
|
(3, 'BS003'),
|
|
128
|
(4, 'BS004');
|
|
129
|
INSERT INTO solution_setting_business_sector_translate (id, label, businessSectorCode, languageId) VALUES
|
|
130
|
(1, 'IT', 'BS001', 1),
|
|
131
|
(2, 'Informatique', 'BS001', 2),
|
|
132
|
(3, 'Automobile', 'BS002', 1),
|
|
133
|
(4, 'Automobile', 'BS002', 2),
|
|
134
|
(5, 'Pharmaceutical industry', 'BS003', 1),
|
|
135
|
(6, 'Industrie pharmaceutique', 'BS003', 2),
|
|
136
|
(7, 'Agrifood', 'BS004', 1),
|
|
137
|
(8, 'Agroalimentaire', 'BS004', 2);
|
|
138
|
|
|
139
|
-- insert sub Sector
|
|
140
|
INSERT INTO solution_setting_sub_sector(id,code,businessSectorCode) VALUES
|
|
141
|
(1 , 'SS001' ,'BS001') ,
|
|
142
|
(2 , 'SS002' ,'BS002'),
|
|
143
|
(3 , 'SS003' ,'BS003'),
|
|
144
|
(4 , 'SS004' ,'BS004');
|
|
145
|
INSERT INTO solution_setting_sub_sector_translate(id,Label,subSectorCode,languageId) VALUES
|
|
146
|
(1,'Digital','SS001',1),(2,'Digital','SS001',2),
|
|
147
|
(3,'Automobile','SS002',1),(4,'Automobile','SS002',2),
|
|
148
|
(5,'Pharma','SS003',1),(6,'Pharma','SS003',2),
|
|
149
|
(7,'Agro','SS004',1),(8,'Agro','SS004',2);
|
|
150
|
INSERT INTO solution_setting_sales_turnover (id, code) VALUES
|
|
151
|
(1, 'CA001'),
|
|
152
|
(2, 'CA002'),
|
|
153
|
(3, 'CA003'),
|
|
154
|
(4, 'CA004'),
|
|
155
|
(5, 'CA005');
|
|
156
|
INSERT INTO solution_setting_sales_turnover_translate (id, label, salesTurnoverCode, languageId) VALUES
|
|
157
|
(1, '1 - 10000', 'CA001', 1),
|
|
158
|
(2, '1 - 10000', 'CA001', 2),
|
|
159
|
(3, '10000 - 100000', 'CA002', 1),
|
|
160
|
(4, '10000 - 100000', 'CA002', 2),
|
|
161
|
(5, '100000 - 500000', 'CA003', 1),
|
|
162
|
(6, '100000 - 500000', 'CA003', 2),
|
|
163
|
(7, '500000 - 1000000', 'CA004', 1),
|
|
164
|
(8, '500000 - 1000000', 'CA004', 2),
|
|
165
|
(9, 'Over 100,000', 'CA005', 1),
|
|
166
|
(10, 'Plus de 100000', 'CA005', 2);
|
|
167
|
INSERT INTO solution_setting_company_size (id, code) VALUES
|
|
168
|
(1, 'CS001'),
|
|
169
|
(2, 'CS002'),
|
|
170
|
(3, 'CS003'),
|
|
171
|
(4, 'CS004'),
|
|
172
|
(5, 'CS005'),
|
|
173
|
(6, 'CS006'),
|
|
174
|
(7, 'CS007'),
|
|
175
|
(8, 'CS008'),
|
|
176
|
(9, 'CS009'),
|
|
177
|
(10, 'CS0010');
|
|
178
|
INSERT INTO solution_setting_company_size_translate (id, label, companySizeCode, languageId) VALUES
|
|
179
|
(1, 'Less than 10', 'CS001', 1),
|
|
180
|
(2, 'Moins de 10', 'CS001', 2),
|
|
181
|
(3, 'Between 11 and 20', 'CS002', 1),
|
|
182
|
(4, 'Entre 11 et 20', 'CS002', 2),
|
|
183
|
(5, 'Between 21 and 30', 'CS003', 1),
|
|
184
|
(6, 'Entre 21 et 30', 'CS003', 2),
|
|
185
|
(7, 'Between 31 and 50', 'CS004', 1),
|
|
186
|
(8, 'Entre 31 et 50', 'CS004', 2),
|
|
187
|
(9, 'Between 51 and 100', 'CS005', 1),
|
|
188
|
(10, 'Entre 51 et 100', 'CS005', 2),
|
|
189
|
(11, 'Between 101 and 300', 'CS006', 1),
|
|
190
|
(12, 'Entre 101 et 300', 'CS006', 2),
|
|
191
|
(13, 'Between 301 and 500', 'CS007', 1),
|
|
192
|
(14, 'Entre 301 et 500', 'CS007', 2),
|
|
193
|
(15, 'Between 501 and 1000', 'CS008', 1),
|
|
194
|
(16, 'Entre 501 et 1000', 'CS008', 2),
|
|
195
|
(17, 'Between 1001 and 2000', 'CS009', 1),
|
|
196
|
(18, 'Entre 1001 et 2000', 'CS009', 2),
|
|
197
|
(19, 'Over 2001', 'CS0010', 1),
|
|
198
|
(20, 'Plus de 2001', 'CS0010', 2);
|
|
199
|
|
|
200
|
INSERT INTO solution_setting_value_chain (id, code) VALUES
|
|
201
|
(1, 'VC001'),
|
|
202
|
(2, 'VC002');
|
|
203
|
INSERT INTO solution_setting_value_chain_translate (id, label, valueChainCode, languageId) VALUES
|
|
204
|
(1, 'Full control of the entire value chain', 'VC001', 1),
|
|
205
|
(2, 'Contrôle total de toute la chaine de valeur', 'VC001', 2),
|
|
206
|
(3, 'Partial control of the value chain', 'VC002', 1),
|
|
207
|
(4, 'Contrôle partiel de la chaine de valeur', 'VC002', 2);
|
|
208
|
INSERT INTO solution_setting_geographic_extent (id, code) VALUES
|
|
209
|
(1, 'GE001'),
|
|
210
|
(2, 'GE002'),
|
|
211
|
(3, 'GE003'),
|
|
212
|
(4, 'GE004');
|
|
213
|
INSERT INTO solution_setting_geographic_extent_translate (id, label, geographicExtentCode, languageId) VALUES
|
|
214
|
(1, 'Present in one country', 'GE001', 1),
|
|
215
|
(2, 'Présent sur un seul pays', 'GE001', 2),
|
|
216
|
(3, 'Present in several countries of the same region', 'GE002', 1),
|
|
217
|
(4, 'Présent sur plusieurs pays d’une même région', 'GE002', 2),
|
|
218
|
(5, 'Present in several countries on two different continents', 'GE003', 1),
|
|
219
|
(6, 'Présent sur plusieurs pays de deux continents différents', 'GE003', 2),
|
|
220
|
(7, 'Present on more than two continents', 'GE004', 1),
|
|
221
|
(8, 'Présent sur plus de deux continents', 'GE004', 2);
|
|
222
|
INSERT INTO solution_entities (id,entity_code, state, entity_level, title, parentId) VALUES
|
|
223
|
(1,'admin_Solution', false, '0', 'Admin solution', '0');
|