if not Exists(SELECT * FROM information_schema.tables where Table_name = 'SalaryTimecard')
begin
	create table SalaryTimecard
	(
		ID	int primary key,
		Taf_ID	bigint references tafsili (ID) not null, -- کد شخص
		FC_ID	int references Finance_Cycle(ID) not null, -- سال
		Dom_ID_Month	int references domain(ID) not null, -- ماه
		WorkDay	smallint not null, -- تعداد روز کارکرد
		[Delay]	smallint not null, -- تاخیر
		Absence	smallint not null, -- غیبت
		MissionDaily	smallint not null, -- ماموریت روزانه
		MissionHoury	smallint not null, -- ماموریت ساعتی
		
		VacationRemedy	smallint not null,  -- مرخصی استعلاجی
		VacationDaily	smallint not null,  -- مرخصی روزانه با حقوق
		VacationDailyWithoutSalary	smallint not null,  -- مرخصی روزانه بدون حقوق
		VacationHoury	smallint not null, -- مرخصی ساعتی 
		
		OvertimeNormal	smallint not null, -- اضافه کاری عادی
		OvertimeHoliday	smallint not null, -- اضافه کاری تعطیلی
		OvertimeMissionNormal	smallint not null, -- اضافه کاری ماموریتی
		OvertimeMissionHoliday	smallint not null, -- اضافه کاری تعطیلی
		
		Description	nvarchar(1000), 
		Dom_ID_Status	int references domain(ID) not null, -- وضعیت
		Kar_ID_Creator	int References Karbar(ID) not null,
		TarikhSabt	int not null,
		SaatSabt	int not null
	)
end;