Tables [dbo].[ARInvoiceCategories]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:46 AM Thursday, March 21, 2019
Last Modified1:10:12 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_ARInvoiceCategories: InvoiceID\CategoryIDInvoiceIDint4
False
Cluster Primary Key PK_ARInvoiceCategories: InvoiceID\CategoryIDForeign Keys FK_ARInvoiceCategories_CategoryID_ARCategories: [dbo].[ARCategories].CategoryIDCategoryIDint4
False
CreatorIDchar(8)8
False
UpdatorIDchar(8)8
False
CreateDatedatetime8
False
(getdate())
LastUpdatedatetime8
False
(getdate())
timestamptimestamp8
True
DetailIDint4
False
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ARInvoiceCategories: InvoiceID\CategoryIDPK_ARInvoiceCategoriesInvoiceID, CategoryID
True
80
NameColumns
FK_ARInvoiceCategories_CategoryID_ARCategoriesCategoryID->[dbo].[ARCategories].[CategoryID]
CREATE TABLE [dbo].[ARInvoiceCategories]
(
[InvoiceID] [int] NOT NULL,
[CategoryID] [int] NOT NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ARInvoiceCategories_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ARInvoiceCategories_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL,
[DetailID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARInvoiceCategories] ADD CONSTRAINT [PK_ARInvoiceCategories] PRIMARY KEY CLUSTERED  ([InvoiceID], [CategoryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARInvoiceCategories] ADD CONSTRAINT [FK_ARInvoiceCategories_CategoryID_ARCategories] FOREIGN KEY ([CategoryID]) REFERENCES [dbo].[ARCategories] ([CategoryID])
GO