﻿if not Exists(SELECT * FROM information_schema.tables where Table_name = 'OnlineInvoiceParameter')
begin
	create table dbo.OnlineInvoiceParameter
	(
		ID	int Primary key identity(1,1),
		OI_ID	int references dbo.onlineInvoice(ID) not null,
		Dom_ID_Type	int references dbo.Domain(ID) not null,
		KS_ID	int references dbo.KalaSerial(ID) null
	)
end