Projet

Général

Profil

PROD V(22) ACTUEL » 1_2_1_solution_int_value.sql

Tarek AOUADI, 08/08/2025 13:58

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

    
111
INSERT INTO solution_setting_country (id, code, active) VALUES
112
(1, 'TN', 1),
113
(2, 'FR', 1);
114

    
115
INSERT INTO solution_setting_country_translate (id, label, countryCode, languageId) VALUES
116
(1, 'Tunisia', 'TN', 1),   -- Traduction en anglais pour le pays TN
117
(2, 'Tunisie', 'TN', 2),   -- Traduction en français pour le pays TN
118
(3, 'France', 'FR', 1),    -- Traduction en anglais pour le pays FR
119
(4, 'France', 'FR', 2);    -- Traduction en français pour le pays FR
120

    
121
INSERT INTO solution_setting_sales_turnover (id, code) VALUES
122
(1, 'CA001'),
123
(2, 'CA002'),
124
(3, 'CA003'),
125
(4, 'CA004'),
126
(5, 'CA005');
127

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

    
140
INSERT INTO solution_setting_company_size (id, code) VALUES
141
(1, 'CS001'),
142
(2, 'CS002'),
143
(3, 'CS003'),
144
(4, 'CS004'),
145
(5, 'CS005'),
146
(6, 'CS006'),
147
(7, 'CS007'),
148
(8, 'CS008'),
149
(9, 'CS009'),
150
(10, 'CS0010');
151

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

    
178
INSERT INTO solution_setting_value_chain_translate (id, label, valueChainCode, languageId) VALUES
179
(1, 'Full control of the entire value chain', 'VC001', 1),    
180
(2, 'Contrôle total de toute la chaine de valeur', 'VC001', 2),   
181
(3, 'Partial control of the value chain', 'VC002', 1),    
182
(4, 'Contrôle partiel de la chaine de valeur', 'VC002', 2);
183

    
184
INSERT INTO solution_setting_geographic_extent (id, code) VALUES
185
(1, 'GE001'),
186
(2, 'GE002'),
187
(3, 'GE003'),
188
(4, 'GE004');
189

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