Tables [dbo].[ThirdPartyInvoiceSequence]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created3:33:56 PM Thursday, December 6, 2018
Last Modified3:33:57 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ThirdPartyInvoiceSequence: ThirdPartyInvoiceSequenceIDThirdPartyInvoiceSequenceIDint4
No
1 - 1
Foreign Keys FK_ThirdPartyInvoiceSequence_Orders: [dbo].[Orders].OrderFIDOrderFIDint4
No
Sequencebigint8
No
((1))
Indexes Indexes
NameColumnsUnique
Primary Key PK_ThirdPartyInvoiceSequence: ThirdPartyInvoiceSequenceIDPK_ThirdPartyInvoiceSequenceThirdPartyInvoiceSequenceID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ThirdPartyInvoiceSequence_OrdersOrderFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ThirdPartyInvoiceSequence]
(
[ThirdPartyInvoiceSequenceID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[Sequence] [bigint] NOT NULL CONSTRAINT [DF_ThirdPartyInvoiceSequence_Sequence] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyInvoiceSequence] ADD CONSTRAINT [PK_ThirdPartyInvoiceSequence] PRIMARY KEY NONCLUSTERED  ([ThirdPartyInvoiceSequenceID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ThirdPartyInvoiceSequence] ADD CONSTRAINT [FK_ThirdPartyInvoiceSequence_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[ThirdPartyInvoiceSequence] TO [MssExec]
GRANT INSERT ON  [dbo].[ThirdPartyInvoiceSequence] TO [MssExec]
GRANT DELETE ON  [dbo].[ThirdPartyInvoiceSequence] TO [MssExec]
GRANT UPDATE ON  [dbo].[ThirdPartyInvoiceSequence] TO [MssExec]
GO
Uses