Tables [dbo].[InvoiceTerms]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)36
Created4:57:07 PM Thursday, September 7, 2006
Last Modified11:13:39 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_InvoiceTerms: InvoiceTermsIDInvoiceTermsIDint4
No
1 - 1
Foreign Keys FK_InvoiceTerms_InvoiceChargeAmountType: [dbo].[InvoiceChargeAmountType].InvoiceChargeAmountTypeFIDInvoiceChargeAmountTypeFIDint4
No
Foreign Keys FK_InvoiceTerms_Branch: [dbo].[Branch].BranchFIDIndexes IX_InvoiceTerms_BranchFID: BranchFIDBranchFIDint4
No
DaysDueint4
No
((0))
ChargeAmountdecimal(19,2)9
No
((0))
MinimumChargemoney8
No
((0))
Conditionsvarchar(256)256
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_InvoiceTerms: InvoiceTermsIDPK_InvoiceTermsInvoiceTermsID
Yes
80
IX_InvoiceTerms_BranchFIDBranchFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_InvoiceTerms_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
FK_InvoiceTerms_InvoiceChargeAmountTypeInvoiceChargeAmountTypeFID->[dbo].[InvoiceChargeAmountType].[InvoiceChargeAmountTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InvoiceTerms]
(
[InvoiceTermsID] [int] NOT NULL IDENTITY(1, 1),
[InvoiceChargeAmountTypeFID] [int] NOT NULL,
[BranchFID] [int] NOT NULL,
[DaysDue] [int] NOT NULL CONSTRAINT [DF_InvoiceTerms_DaysDue] DEFAULT ((0)),
[ChargeAmount] [decimal] (19, 2) NOT NULL CONSTRAINT [DF_InvoiceTerms_ChargeAmount] DEFAULT ((0)),
[MinimumCharge] [money] NOT NULL CONSTRAINT [DF_InvoiceTerms_MinimumCharge] DEFAULT ((0)),
[Conditions] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceTerms] ADD CONSTRAINT [PK_InvoiceTerms] PRIMARY KEY NONCLUSTERED  ([InvoiceTermsID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceTerms] ADD CONSTRAINT [IX_InvoiceTerms_BranchFID] UNIQUE NONCLUSTERED  ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InvoiceTerms] ADD CONSTRAINT [FK_InvoiceTerms_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[InvoiceTerms] ADD CONSTRAINT [FK_InvoiceTerms_InvoiceChargeAmountType] FOREIGN KEY ([InvoiceChargeAmountTypeFID]) REFERENCES [dbo].[InvoiceChargeAmountType] ([InvoiceChargeAmountTypeID])
GO
GRANT SELECT ON  [dbo].[InvoiceTerms] TO [MssExec]
GRANT INSERT ON  [dbo].[InvoiceTerms] TO [MssExec]
GRANT DELETE ON  [dbo].[InvoiceTerms] TO [MssExec]
GRANT UPDATE ON  [dbo].[InvoiceTerms] TO [MssExec]
GO
Uses