CREATE TABLE [dbo].[OrderThirdPartys]
(
[OrdThirdPartyPriKey] [int] NOT NULL IDENTITY(1, 1),
[OrdPriKey] [int] NOT NULL,
[VendorID] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Amount] [money] NULL,
[PONumber] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[InvoiceNumber] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Description] [varchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Date] [date] NULL,
[InvoiceReceivedDate] [date] NULL,
[InvoiceApprovedDate] [date] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderThirdPartys] ADD CONSTRAINT [PK_OrderThirdPartys] PRIMARY KEY CLUSTERED ([OrdThirdPartyPriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[OrderThirdPartys] TO [MssExec]
GRANT INSERT ON [dbo].[OrderThirdPartys] TO [MssExec]
GRANT DELETE ON [dbo].[OrderThirdPartys] TO [MssExec]
GRANT UPDATE ON [dbo].[OrderThirdPartys] TO [MssExec]
GO