Tables [dbo].[AccountingCustomerPaymentTerms]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:01:04 PM Thursday, July 24, 2025
Last Modified12:01:04 PM Thursday, July 24, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_AccountingCustomerPaymentTerms: AccountingCustomerPaymentTermsIdAccountingCustomerPaymentTermsIdint4
No
1 - 1
Indexes IX_AccountingCustomerPaymentTerms_TermsDescription: TermsDescriptionTermsDescriptionvarchar(64)64
No
Foreign Keys FK_AccountingCustomerPaymentTerms_InvoiceChargeAmountType: [dbo].[InvoiceChargeAmountType].InvoiceChargeAmountTypeFidInvoiceChargeAmountTypeFidint4
Yes
DaysDueint4
Yes
ChargeAmountdecimal(19,2)9
Yes
MinimumChargemoney8
Yes
Conditionsvarchar(256)256
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_AccountingCustomerPaymentTerms: AccountingCustomerPaymentTermsIdPK_AccountingCustomerPaymentTermsAccountingCustomerPaymentTermsId
Yes
IX_AccountingCustomerPaymentTerms_TermsDescriptionTermsDescription
Yes
Foreign Keys Foreign Keys
NameColumns
FK_AccountingCustomerPaymentTerms_InvoiceChargeAmountTypeInvoiceChargeAmountTypeFid->[dbo].[InvoiceChargeAmountType].[InvoiceChargeAmountTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountingCustomerPaymentTerms]
(
[AccountingCustomerPaymentTermsId] [int] NOT NULL IDENTITY(1, 1),
[TermsDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[InvoiceChargeAmountTypeFid] [int] NULL,
[DaysDue] [int] NULL,
[ChargeAmount] [decimal] (19, 2) NULL,
[MinimumCharge] [money] NULL,
[Conditions] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [PK_AccountingCustomerPaymentTerms] PRIMARY KEY CLUSTERED  ([AccountingCustomerPaymentTermsId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [IX_AccountingCustomerPaymentTerms_TermsDescription] UNIQUE NONCLUSTERED  ([TermsDescription]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountingCustomerPaymentTerms] ADD CONSTRAINT [FK_AccountingCustomerPaymentTerms_InvoiceChargeAmountType] FOREIGN KEY ([InvoiceChargeAmountTypeFid]) REFERENCES [dbo].[InvoiceChargeAmountType] ([InvoiceChargeAmountTypeID])
GO
GRANT SELECT ON  [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountingCustomerPaymentTerms] TO [MssExec]
GO
Uses