Tables [dbo].[FactoringPrepaymentItemCode]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created8:56:57 AM Friday, November 22, 2024
Last Modified8:56:57 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_FactoringPrepaymentItemCode: FactoringPrepaymentItemCodeIDFactoringPrepaymentItemCodeIDint4
No
1 - 1
Foreign Keys FK_FactoringPrepaymentItemCode_FactoringSetupFID: [dbo].[FactoringSetup].FactoringSetupFIDIndexes IX_FactoringPrepaymentItemCode_Setup_ItemCode: FactoringSetupFID\ItemCodeFIDFactoringSetupFIDint4
No
Foreign Keys FK_FactoringPrepaymentItemCode_ItemCodeFID: [dbo].[ItemCode].ItemCodeFIDIndexes IX_FactoringPrepaymentItemCode_Setup_ItemCode: FactoringSetupFID\ItemCodeFIDIndexes IX_FactoringPrepaymentItemCode_ItemCode: ItemCodeFIDItemCodeFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_FactoringPrepaymentItemCode: FactoringPrepaymentItemCodeIDPK_FactoringPrepaymentItemCodeFactoringPrepaymentItemCodeID
Yes
IX_FactoringPrepaymentItemCode_Setup_ItemCodeFactoringSetupFID, ItemCodeFID
Yes
IX_FactoringPrepaymentItemCode_ItemCodeItemCodeFID
Foreign Keys Foreign Keys
NameColumns
FK_FactoringPrepaymentItemCode_FactoringSetupFIDFactoringSetupFID->[dbo].[FactoringSetup].[FactoringSetupID]
FK_FactoringPrepaymentItemCode_ItemCodeFIDItemCodeFID->[dbo].[ItemCode].[ICPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[FactoringPrepaymentItemCode]
(
[FactoringPrepaymentItemCodeID] [int] NOT NULL IDENTITY(1, 1),
[FactoringSetupFID] [int] NOT NULL,
[ItemCodeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringPrepaymentItemCode] ADD CONSTRAINT [PK_FactoringPrepaymentItemCode] PRIMARY KEY NONCLUSTERED  ([FactoringPrepaymentItemCodeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringPrepaymentItemCode] ADD CONSTRAINT [IX_FactoringPrepaymentItemCode_Setup_ItemCode] UNIQUE NONCLUSTERED  ([FactoringSetupFID], [ItemCodeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_FactoringPrepaymentItemCode_ItemCode] ON [dbo].[FactoringPrepaymentItemCode] ([ItemCodeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FactoringPrepaymentItemCode] ADD CONSTRAINT [FK_FactoringPrepaymentItemCode_FactoringSetupFID] FOREIGN KEY ([FactoringSetupFID]) REFERENCES [dbo].[FactoringSetup] ([FactoringSetupID])
GO
ALTER TABLE [dbo].[FactoringPrepaymentItemCode] ADD CONSTRAINT [FK_FactoringPrepaymentItemCode_ItemCodeFID] FOREIGN KEY ([ItemCodeFID]) REFERENCES [dbo].[ItemCode] ([ICPriKey])
GO
GRANT SELECT ON  [dbo].[FactoringPrepaymentItemCode] TO [MssExec]
GRANT INSERT ON  [dbo].[FactoringPrepaymentItemCode] TO [MssExec]
GRANT DELETE ON  [dbo].[FactoringPrepaymentItemCode] TO [MssExec]
GRANT UPDATE ON  [dbo].[FactoringPrepaymentItemCode] TO [MssExec]
GO
Uses