Projet

Général

Profil

US #878 » 4_Compensation.sql

ahlem belgacem, 01/02/2025 12:51

 
1

    
2
use salarymarket;
3
CREATE TABLE company_compensation (
4
	id INT AUTO_INCREMENT PRIMARY KEY,
5
    country  varchar(255) NULL,
6
	city  varchar(255) NULL,
7
	site VARCHAR(1) NULL,
8
	matricule VARCHAR(255) NULL,
9
	department VARCHAR(255) NULL,
10
	`function` VARCHAR(255) NULL,
11
	internal_grade VARCHAR(255) NULL,
12
	gender VARCHAR(2) NULL,
13
	birthday DATE NULL,
14
    hiring_date DATE NULL,
15
	function_code VARCHAR(255) NULL, 
16
	subfunction_code VARCHAR(255) NULL, -- changed instead of discipline_code 
17
	collaborative_path VARCHAR(255) NULL, -- changed instead of level_career_path  
18
	grade VARCHAR(255) NULL, -- changed instead of job_grade
19
	number_employees_supervised INT NULL,
20
	devise VARCHAR(10) NULL,
21
	gross_annual_salary TEXT NULL,
22
	number_monthly_salary VARCHAR(255) NULL,
23
	type_overtime_pay VARCHAR(255) NULL,
24
	seniority_bonus INT NULL, -- new
25
	schooling_allowance INT NULL, -- new
26
	meal_allowance INT NULL,
27
	location_allowance VARCHAR(255) NULL,
28
	transportation_allowance INT NULL,
29
	other_bonuses_awarded_last_year INT NULL , -- changed instead of other_bonuses_awarded
30
	fixed_allowances INT NULL,
31
	eligibility_performance_bonus VARCHAR(10) NULL,
32
	target_performance_bonus VARCHAR(255) NULL,
33
	total_amount_performance_bonus_awarded TEXT NULL,
34
	eligibility_commissions VARCHAR(1) NULL,
35
	target_variable_sales_compensation VARCHAR(5) NULL ,
36
	total_amount_sales_bonus_awarded VARCHAR(255) NULL,
37
	total_amount_sales_commissions_awarded VARCHAR(255) NULL,
38
	car_benefit_eligibility VARCHAR(1) NULL,
39
	car_depreciation TEXT NULL,
40
	annual_cost_car_depreciation TEXT NULL,
41
    car_allocation_eligibility varchar(1) NULL ,
42
	annual_cost_car_allocation TEXT NULL ,
43
    poste VARCHAR(255) NULL,
44
	companyId INT NULL,
45
	FOREIGN KEY (companyId) REFERENCES company(id) ON DELETE CASCADE ON UPDATE CASCADE
46
);
(9-9/10)