﻿if not Exists(SELECT * FROM information_schema.tables where Table_name = 'SalaryCalculationMethodItem')
begin
	create table SalaryCalculationMethodItem
	(
		ID	int Primary Key identity(1,1),
		SCM_ID	int references SalaryCalculationMethod(ID) not null, -- کد پرنت
		Dom_ID_RowType	int references domain(ID) not null, -- اضافات|کسورات
		PF_ID	int references PrescriptionFormula(ID) not null, -- کد فرمول
		Priority	int not null -- اولویت اجرا
	)
end;