Tables [dbo].[ShipmentStatusFieldRequirement]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created3:50:52 PM Thursday, December 6, 2018
Last Modified3:51:07 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ShipmentStatusFieldRequirement: ShipmentStatusFieldRequirementIDShipmentStatusFieldRequirementIDint4
No
1 - 1
Foreign Keys FK_ShipmentStatusFieldRequirement_ShipmentStatusFieldRequirementMaster: [dbo].[ShipmentStatusFieldRequirementMaster].ShipmentStatusFieldRequirementMasterFIDShipmentStatusFieldRequirementMasterFIDint4
No
Foreign Keys FK_ShipmentStatusFieldRequirement_ShipmentStatus: [dbo].[ShipmentStatus].ShipmentStatusFIDIndexes IX_ShipmentStatusFieldRequirement_ShipmentStatusFID_ShipmentTypeFID_RequireableFieldFID: ShipmentStatusFID\ShipmentTypeFID\RequireableFieldFIDShipmentStatusFIDint4
No
Foreign Keys FK_ShipmentStatusFieldRequirement_ShipmentType: [dbo].[ShipmentType].ShipmentTypeFIDIndexes IX_ShipmentStatusFieldRequirement_ShipmentStatusFID_ShipmentTypeFID_RequireableFieldFID: ShipmentStatusFID\ShipmentTypeFID\RequireableFieldFIDShipmentTypeFIDint4
Yes
Foreign Keys FK_ShipmentStatusFieldRequirement_RequireableField: [dbo].[RequireableField].RequireableFieldFIDIndexes IX_ShipmentStatusFieldRequirement_ShipmentStatusFID_ShipmentTypeFID_RequireableFieldFID: ShipmentStatusFID\ShipmentTypeFID\RequireableFieldFIDRequireableFieldFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ShipmentStatusFieldRequirement: ShipmentStatusFieldRequirementIDPK_ShipmentStatusFieldRequirementShipmentStatusFieldRequirementID
Yes
IX_ShipmentStatusFieldRequirement_ShipmentStatusFID_ShipmentTypeFID_RequireableFieldFIDShipmentStatusFID, ShipmentTypeFID, RequireableFieldFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ShipmentStatusFieldRequirement_RequireableFieldRequireableFieldFID->[dbo].[RequireableField].[RequireableFieldID]
FK_ShipmentStatusFieldRequirement_ShipmentStatusShipmentStatusFID->[dbo].[ShipmentStatus].[ShipmentStatusID]
FK_ShipmentStatusFieldRequirement_ShipmentStatusFieldRequirementMasterShipmentStatusFieldRequirementMasterFID->[dbo].[ShipmentStatusFieldRequirementMaster].[ShipmentStatusFieldRequirementMasterID]
FK_ShipmentStatusFieldRequirement_ShipmentTypeShipmentTypeFID->[dbo].[ShipmentType].[ShipmentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ShipmentStatusFieldRequirement]
(
[ShipmentStatusFieldRequirementID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentStatusFieldRequirementMasterFID] [int] NOT NULL,
[ShipmentStatusFID] [int] NOT NULL,
[ShipmentTypeFID] [int] NULL,
[RequireableFieldFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusFieldRequirement] ADD CONSTRAINT [PK_ShipmentStatusFieldRequirement] PRIMARY KEY NONCLUSTERED  ([ShipmentStatusFieldRequirementID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_ShipmentStatusFieldRequirement_ShipmentStatusFID_ShipmentTypeFID_RequireableFieldFID] ON [dbo].[ShipmentStatusFieldRequirement] ([ShipmentStatusFID], [ShipmentTypeFID], [RequireableFieldFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatusFieldRequirement] ADD CONSTRAINT [FK_ShipmentStatusFieldRequirement_RequireableField] FOREIGN KEY ([RequireableFieldFID]) REFERENCES [dbo].[RequireableField] ([RequireableFieldID])
GO
ALTER TABLE [dbo].[ShipmentStatusFieldRequirement] ADD CONSTRAINT [FK_ShipmentStatusFieldRequirement_ShipmentStatus] FOREIGN KEY ([ShipmentStatusFID]) REFERENCES [dbo].[ShipmentStatus] ([ShipmentStatusID])
GO
ALTER TABLE [dbo].[ShipmentStatusFieldRequirement] ADD CONSTRAINT [FK_ShipmentStatusFieldRequirement_ShipmentStatusFieldRequirementMaster] FOREIGN KEY ([ShipmentStatusFieldRequirementMasterFID]) REFERENCES [dbo].[ShipmentStatusFieldRequirementMaster] ([ShipmentStatusFieldRequirementMasterID])
GO
ALTER TABLE [dbo].[ShipmentStatusFieldRequirement] ADD CONSTRAINT [FK_ShipmentStatusFieldRequirement_ShipmentType] FOREIGN KEY ([ShipmentTypeFID]) REFERENCES [dbo].[ShipmentType] ([ShipmentTypeID])
GO
GRANT SELECT ON  [dbo].[ShipmentStatusFieldRequirement] TO [MssExec]
GRANT INSERT ON  [dbo].[ShipmentStatusFieldRequirement] TO [MssExec]
GRANT DELETE ON  [dbo].[ShipmentStatusFieldRequirement] TO [MssExec]
GRANT UPDATE ON  [dbo].[ShipmentStatusFieldRequirement] TO [MssExec]
GO
Uses