Projet

Général

Profil

DATABASE ARCHIVE » 1_2_int_solution_value.sql

Tarek AOUADI, 02/04/2025 00:03

 
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
-- initialise menu solution
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

    
18
(5, 'home_administration_subscription', 'Subscription  per clients ', 'home_administration', 'widget',1), 
19
(6, 'home_administration_employees_per_region', 'Employees per Region', 'home_administration', 'widget',1),
20
(7, 'home_indicators', 'Indicators','home', 'subMenu',1),
21

    
22
(8, 'home_indicateurs_number_of_employees', 'Number of Employees', 'home_indicators', 'widget',1),
23

    
24
(9, 'home_administration_employees_per_gender', 'Number of Employees by Gender', 'home_indicators', 'widget',1),
25
(10, 'home_indicateurs_payroll', 'Payroll','home_indicators', 'widget',1),
26

    
27
(11, 'home_indicateurs_median_salaries_by_career_path', 'Average Salaries by Career Path', 'home_indicators', 'widget',1),
28
(12, 'home_indicateurs_supervision_rate', 'Supervision Rate', 'home_indicators', 'widget',1),
29

    
30
(13, 'home_indicateurs_median_salaries_by_grade', 'Average Salaries by Grade', 'home_indicators', 'widget',1),
31
-- Compensation Section
32
(14, 'company_compensation', 'Company Compensation', NULL, 'menu',1),
33
-- Quiz Section
34
(15, 'company_quiz', 'HR Policy and Practices', NULL, 'menu',0),
35
(16, 'quiz_current_sector', 'Quiz current Sector','company_quiz', 'option',1),  
36
(17, 'quiz_market', 'Quiz by Market', 'company_quiz', 'option',1),
37
(18, 'quiz_selected_sector', 'Quiz by Selected Sector', 'company_quiz', 'option',1),  
38
-- Report Section
39
(19, 'report', 'Report', NULL, 'menu',0),
40
-- My Company Section
41
(20, 'myCompany', 'My Company', NULL, 'menu',1),
42
(21, 'myCompany_informations', 'Information', 'myCompany', 'menu',1),
43
(22, 'myCompany_users', 'Users', 'myCompany', 'menu',1),
44
(23, 'myCompany_entities', 'Entities', 'myCompany', 'menu',1),
45
(24, 'myCompany_profiles', 'Profiles','myCompany', 'menu',1),
46
(25, 'myCompany_configuration', 'Configuration', 'myCompany', 'menu',1),
47
(26, 'myCompany_settings', 'Settings', 'myCompany', 'menu',1),
48
(27, 'myCompany_settings_language', 'Language', 'myCompany_settings', 'subMenu',1),
49
-- My Clients Section
50
(28, 'myClients', 'My Clients', NULL, 'menu',1),
51
(29, 'myClients_clients', 'Clients', 'myClients', 'menu',1),
52
(30, 'client_informations', 'Information','myClients_clients', 'subMenu',1),
53
(31, 'client_users', 'Users', 'myClients_clients', 'subMenu',1),
54
(32, 'client_entities', 'Entities', 'myClients_clients', 'subMenu',1),
55
(33, 'client_profiles', 'Profiles', 'myClients_clients', 'subMenu',1),
56
(34, 'client_configuration', 'Configuration', 'myClients_clients', 'subMenu',1),
57
(35, 'myClients_prospection', 'Prospecting', 'myClients', 'menu',1),
58
-- Administration Section
59
(36, 'administration', 'Administration', NULL, 'menu',1),
60
(37, 'administration_settings', 'Settings', 'administration', 'menu',1),
61
(38, 'administration_settings_language', 'Language', 'administration_settings', 'subMenu',1),
62
(39, 'administration_settings_country', 'Country', 'administration_settings', 'subMenu',1),
63
(40, 'administration_settings_business-sector', 'Business Sector', 'administration_settings', 'subMenu',1),
64
(41, 'administration_settings_turnover', 'Turnover', 'administration_settings', 'subMenu',1),
65
(42, 'administration_settings_geographic-extent', 'Geographic Extent', 'administration_settings', 'subMenu',1),
66
(43, 'administration_settings_company-size', 'Company Size', 'administration_settings', 'subMenu',1),
67
(44, 'administration_settings_value-chain', 'Value Chain','administration_settings', 'subMenu',1),
68
(45, 'administration_entities', 'Entities', 'administration', 'menu',1),
69
(46, 'administration_subscription', 'Subscription', 'administration', 'menu',1);
70
-- initialise subscription solution
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
-- initialise rights for menus 
76
INSERT INTO solution_menu_rights (right_code, right_label, menuCode) VALUES
77
-- Compensation
78
('compensation_create', 'Create', 'company_compensation'),
79
('compensation_export', 'Export', 'company_compensation'),
80
('compensation_import', 'Import', 'company_compensation'),
81
('compensation_search', 'Search', 'company_compensation'),
82
('compensation_configuration', 'Configuration', 'company_compensation'),  -- NEW
83
('compensation_delete', 'Delete', 'company_compensation'),
84
('compensation_update', 'Update', 'company_compensation'),
85
('compensation_view' , 'View',   'company_compensation'),
86
-- HR Policy and Practices
87
('quiz_Submit', 'Submit', 'company_quiz'),
88
('quiz_View', 'View', 'company_quiz'),
89
-- Report 
90
('report_create', 'Create', 'report'),
91
('report_View', 'View', 'report'),
92
('report_delete', 'Delete', 'report'),
93
('report_upload', 'Upload', 'report'),
94
-- Informations company
95
('company_Informations_update', 'Update', 'myCompany_informations'),
96
-- Users company
97
('company_user_create', 'Create', 'myCompany_users'),
98
('company_user_update', 'Update', 'myCompany_users'),
99
('company_user_delete', 'Delete', 'myCompany_users'),
100
('company_user_desactivate', 'Desactivate', 'myCompany_users'),
101
('company_user_activity', 'Activity', 'myCompany_users'),
102
('company_user_view', 'View', 'myCompany_users'),
103
-- Entities company
104
('company_entity_create', 'Create', 'myCompany_entities'),
105
('company_entity_update', 'Update', 'myCompany_entities'),
106
('company_entity_delete', 'Delete', 'myCompany_entities'),
107
('company_entity_view', 'View', 'myCompany_entities'),
108
-- Profiles company
109
('company_profil_Create', 'Create', 'myCompany_profiles'),
110
('company_profil_view', 'View', 'myCompany_profiles'),
111
('company_profil_update', 'Update', 'myCompany_profiles'),
112
('company_profil_delete', 'Delete', 'myCompany_profiles'),
113
-- Languages company
114
('company_language_activate', 'Activate', 'myCompany_settings_language');
115

    
116
INSERT INTO solution_setting_country (id, code, active) VALUES
117
(1, 'TN', 1),
118
(2, 'FR', 1);
119

    
120
INSERT INTO solution_setting_country_translate (id, label, countryCode, languageId) VALUES
121
(1, 'Tunisia', 'TN', 1),   -- Traduction en anglais pour le pays TN
122
(2, 'Tunisie', 'TN', 2),   -- Traduction en français pour le pays TN
123
(3, 'France', 'FR', 1),    -- Traduction en anglais pour le pays FR
124
(4, 'France', 'FR', 2);    -- Traduction en français pour le pays FR
125

    
126
INSERT INTO solution_setting_sales_turnover (id, code) VALUES
127
(1, 'CA001'),
128
(2, 'CA002'),
129
(3, 'CA003'),
130
(4, 'CA004'),
131
(5, 'CA005');
132

    
133
INSERT INTO solution_setting_sales_turnover_translate (id, label, salesTurnoverCode, languageId) VALUES
134
(1, '1 - 10000', 'CA001', 1),    
135
(2, '1 - 10000', 'CA001', 2),   
136
(3, '10000 - 100000', 'CA002', 1),    
137
(4, '10000 - 100000', 'CA002', 2), 
138
(5, '100000 - 500000', 'CA003', 1),     
139
(6, '100000 - 500000', 'CA003', 2),
140
(7, '500000 - 1000000', 'CA004', 1),   
141
(8, '500000 - 1000000', 'CA004', 2), 
142
(9, 'Over 100,000', 'CA005', 1),   
143
(10, 'Plus de 100000', 'CA005', 2);  
144

    
145
INSERT INTO solution_setting_company_size (id, code) VALUES
146
(1, 'CS001'),
147
(2, 'CS002'),
148
(3, 'CS003'),
149
(4, 'CS004'),
150
(5, 'CS005'),
151
(6, 'CS006'),
152
(7, 'CS007'),
153
(8, 'CS008'),
154
(9, 'CS009'),
155
(10, 'CS0010');
156

    
157
INSERT INTO solution_setting_company_size_translate (id, label, companySizeCode, languageId) VALUES
158
(1, 'Less than 10', 'CS001', 1),    
159
(2, 'Moins de 10', 'CS001', 2),   
160
(3, 'Between 11 and 20', 'CS002', 1),    
161
(4, 'Entre 11 et 20', 'CS002', 2), 
162
(5, 'Between 21 and 30', 'CS003', 1),     
163
(6, 'Entre 21 et 30', 'CS003', 2),
164
(7, 'Between 31 and 50', 'CS004', 1),   
165
(8, 'Entre 31 et 50', 'CS004', 2), 
166
(9, 'Between 51 and 100', 'CS005', 1),   
167
(10, 'Entre 51 et 100', 'CS005', 2),  
168
(11, 'Between 101 and 300', 'CS006', 1),    
169
(12, 'Entre 101 et 300', 'CS006', 2),   
170
(13, 'Between 301 and 500', 'CS007', 1),    
171
(14, 'Entre 301 et 500', 'CS007', 2), 
172
(15, 'Between 501 and 1000', 'CS008', 1),     
173
(16, 'Entre 501 et 1000', 'CS008', 2),
174
(17, 'Between 1001 and 2000', 'CS009', 1),   
175
(18, 'Entre 1001 et 2000', 'CS009', 2), 
176
(19, 'Over 2001', 'CS0010', 1),   
177
(20, 'Plus de 2001', 'CS0010', 2);
178
 
179
INSERT INTO solution_setting_value_chain (id, code) VALUES
180
(1, 'VC001'),
181
(2, 'VC002');
182

    
183
INSERT INTO solution_setting_value_chain_translate (id, label, valueChainCode, languageId) VALUES
184
(1, 'Full control of the entire value chain', 'VC001', 1),    
185
(2, 'Contrôle total de toute la chaine de valeur', 'VC001', 2),   
186
(3, 'Partial control of the value chain', 'VC002', 1),    
187
(4, 'Contrôle partiel de la chaine de valeur', 'VC002', 2);
188

    
189
INSERT INTO solution_setting_geographic_extent (id, code) VALUES
190
(1, 'GE001'),
191
(2, 'GE002'),
192
(3, 'GE003'),
193
(4, 'GE004');
194

    
195
INSERT INTO solution_setting_geographic_extent_translate (id, label, geographicExtentCode, languageId) VALUES
196
(1, 'Present in one country', 'GE001', 1),    
197
(2, 'Présent sur un seul pays', 'GE001', 2),   
198
(3, 'Present in several countries of the same region', 'GE002', 1),    
199
(4, 'Présent sur plusieurs pays d’une même région', 'GE002', 2), 
200
(5, 'Present in several countries on two different continents', 'GE003', 1),     
201
(6, 'Présent sur plusieurs pays de deux continents différents', 'GE003', 2),
202
(7, 'Present on more than two continents', 'GE004', 1),   
203
(8, 'Présent sur plus de deux continents', 'GE004', 2);
204
INSERT INTO solution_entities (id,entity_code, state, entity_level, title, parentId) VALUES 
205
(1,'admin_Solution', false, '0', 'Admin solution', '0');
(2-2/18)