if not Exists(SELECT * FROM information_schema.tables where Table_name = 'TimeCardShiftChange')
begin
	create table TimeCardShiftChange
	(
		ID	int primary key,
		Dom_ID	int references dbo.Domain(ID) not null,
		Code	int not null,
		Mat_ID	bigint references dbo.Matter(ID) not null,
		Taf_ID	bigint references dbo.tafsili(ID) null,
		WG_ID	int references dbo.WorkGroup(ID) null,
		Shift_ID	int references dbo.Shift(ID) not null,
		Tarikh	int not null,
		Description	nvarchar(1000) null
	)
end