Tables [dbo].[FieldRequirementEventDetail]
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_FieldRequirementEventDetail: FieldRequirementEventDetailIDFieldRequirementEventDetailIDint4
No
1 - 1
Foreign Keys FK_FieldRequirementEventDetail_FieldRequirementEvent: [dbo].[FieldRequirementEvent].FieldRequirementEventFIDIndexes IX_FieldRequirementEventDetail_FieldRequirementEventFID_ShipmentTypeFID_RequireableFieldFID: FieldRequirementEventFID\ShipmentTypeFID\RequireableFieldFIDFieldRequirementEventFIDint4
No
Foreign Keys FK_FieldRequirementEventDetail_ShipmentType: [dbo].[ShipmentType].ShipmentTypeFIDIndexes IX_FieldRequirementEventDetail_FieldRequirementEventFID_ShipmentTypeFID_RequireableFieldFID: FieldRequirementEventFID\ShipmentTypeFID\RequireableFieldFIDShipmentTypeFIDint4
Yes
Foreign Keys FK_FieldRequirementEventDetail_RequireableField: [dbo].[RequireableField].RequireableFieldFIDIndexes IX_FieldRequirementEventDetail_FieldRequirementEventFID_ShipmentTypeFID_RequireableFieldFID: FieldRequirementEventFID\ShipmentTypeFID\RequireableFieldFIDRequireableFieldFIDint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_FieldRequirementEventDetail: FieldRequirementEventDetailIDPK_FieldRequirementEventDetailFieldRequirementEventDetailID
Yes
IX_FieldRequirementEventDetail_FieldRequirementEventFID_ShipmentTypeFID_RequireableFieldFIDFieldRequirementEventFID, ShipmentTypeFID, RequireableFieldFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_FieldRequirementEventDetail_FieldRequirementEventFieldRequirementEventFID->[dbo].[FieldRequirementEvent].[FieldRequirementEventID]
FK_FieldRequirementEventDetail_RequireableFieldRequireableFieldFID->[dbo].[RequireableField].[RequireableFieldID]
FK_FieldRequirementEventDetail_ShipmentTypeShipmentTypeFID->[dbo].[ShipmentType].[ShipmentTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[FieldRequirementEventDetail]
(
[FieldRequirementEventDetailID] [int] NOT NULL IDENTITY(1, 1),
[FieldRequirementEventFID] [int] NOT NULL,
[ShipmentTypeFID] [int] NULL,
[RequireableFieldFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FieldRequirementEventDetail] ADD CONSTRAINT [PK_FieldRequirementEventDetail] PRIMARY KEY NONCLUSTERED  ([FieldRequirementEventDetailID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_FieldRequirementEventDetail_FieldRequirementEventFID_ShipmentTypeFID_RequireableFieldFID] ON [dbo].[FieldRequirementEventDetail] ([FieldRequirementEventFID], [ShipmentTypeFID], [RequireableFieldFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[FieldRequirementEventDetail] ADD CONSTRAINT [FK_FieldRequirementEventDetail_FieldRequirementEvent] FOREIGN KEY ([FieldRequirementEventFID]) REFERENCES [dbo].[FieldRequirementEvent] ([FieldRequirementEventID])
GO
ALTER TABLE [dbo].[FieldRequirementEventDetail] ADD CONSTRAINT [FK_FieldRequirementEventDetail_RequireableField] FOREIGN KEY ([RequireableFieldFID]) REFERENCES [dbo].[RequireableField] ([RequireableFieldID])
GO
ALTER TABLE [dbo].[FieldRequirementEventDetail] ADD CONSTRAINT [FK_FieldRequirementEventDetail_ShipmentType] FOREIGN KEY ([ShipmentTypeFID]) REFERENCES [dbo].[ShipmentType] ([ShipmentTypeID])
GO
GRANT SELECT ON  [dbo].[FieldRequirementEventDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[FieldRequirementEventDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[FieldRequirementEventDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[FieldRequirementEventDetail] TO [MssExec]
GO
Uses