﻿if not Exists(SELECT * FROM information_schema.tables where Table_name = 'VoucherElectronicOfficeItem')
begin
	create table dbo.VoucherElectronicOfficeItem
	(
		ID	int primary key identity(1,1),
		VEO_ID	int references dbo.VoucherElectronicOffice(ID) not null,
		RowNumber	int not null,
		VI_ID	int references dbo.VoucherItem(ID) not null
	)
end