if not Exists(SELECT * FROM information_schema.tables where Table_name = 'TaskResponse') begin create table dbo.TaskResponse ( ID int primary key, TR_ID int references dbo.TaskRequest(ID) not null, Mat_ID bigint references dbo.Matter(ID) not null, Taf_ID_Actioner bigint references dbo.tafsili(ID) not null, -- اقدام کننده --Dom_ID_RowType int references dbo.domain(ID) not null, Dom_ID_Status int references dbo.Domain(ID) not null, -- وضعیت: پیش نویس | قطعی Tarikh int not null, Saat int not null, [Description] nvarchar(1000) null ) end