Tables [dbo].[FactoringCustomer]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:45:07 AM Sunday, February 16, 2025
Last Modified9:55:38 AM Sunday, February 16, 2025
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_FactoringCustomer: FactoringCustomerIDFactoringCustomerIDint4
No
1 - 1
Indexes IX_FactoringCustomer_CustomerNumber: CustomerNumberCustomerNumbervarchar(15)15
No
Foreign Keys FK_FactoringCustomer_AccountingCustomer: [dbo].[AccountingCustomer].AccountingCustomerFidIndexes IX_FactoringCustomer_AccountingCustomerFid: AccountingCustomerFidAccountingCustomerFidint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_FactoringCustomer: FactoringCustomerIDPK_FactoringCustomerFactoringCustomerID
Yes
IX_FactoringCustomer_CustomerNumberCustomerNumber
Yes
IX_FactoringCustomer_AccountingCustomerFidAccountingCustomerFid
Foreign Keys Foreign Keys
NameColumns
FK_FactoringCustomer_AccountingCustomerAccountingCustomerFid->[dbo].[AccountingCustomer].[AccountingCustomerId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[FactoringCustomer]
(
[FactoringCustomerID] [int] NOT NULL IDENTITY(1, 1),
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AccountingCustomerFid] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringCustomer] ADD CONSTRAINT [PK_FactoringCustomer] PRIMARY KEY NONCLUSTERED  ([FactoringCustomerID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringCustomer] ADD CONSTRAINT [IX_FactoringCustomer_CustomerNumber] UNIQUE NONCLUSTERED  ([CustomerNumber]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_FactoringCustomer_AccountingCustomerFid] ON [dbo].[FactoringCustomer] ([AccountingCustomerFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringCustomer] ADD CONSTRAINT [FK_FactoringCustomer_AccountingCustomer] FOREIGN KEY ([AccountingCustomerFid]) REFERENCES [dbo].[AccountingCustomer] ([AccountingCustomerId])
GO
GRANT SELECT ON  [dbo].[FactoringCustomer] TO [MssExec]
GRANT INSERT ON  [dbo].[FactoringCustomer] TO [MssExec]
GRANT DELETE ON  [dbo].[FactoringCustomer] TO [MssExec]
GRANT UPDATE ON  [dbo].[FactoringCustomer] TO [MssExec]
GO
Uses