Tables [dbo].[SafetySystemEquipmentEventLog]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created5:32:32 PM Wednesday, January 2, 2008
Last Modified12:32:37 PM Monday, August 4, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SafetySystemEquipmentEventLog: SafetySystemEquipmentEventLogIDSafetySystemEquipmentEventLogIDint4
No
1 - 1
Foreign Keys FK_SafetySystemEquipmentEventLog_Equip: [dbo].[Equip].EquipFIDIndexes IX_SafetySystemEquipmentEventLog_Equip: EquipFIDEquipFIDint4
No
Foreign Keys FK_SafetySystemEquipmentEventLog_SafetySystemEquipmentEventType: [dbo].[SafetySystemEquipmentEventType].SafetySystemEquipmentEventTypeFIDSafetySystemEquipmentEventTypeFIDint4
No
Foreign Keys FK_SafetySystemEquipmentEventLog_CreatedBySysUser: [dbo].[Sysuser].CreatedBySysUserFIDIndexes IX_SafetySystemEquipmentEventLog_CreatedBySysUserFID: CreatedBySysUserFIDCreatedBySysUserFIDint4
No
CreatedDatedatetime8
No
EventDatedatetime8
No
Descriptiontextmax
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_SafetySystemEquipmentEventLog: SafetySystemEquipmentEventLogIDPK_SafetySystemEquipmentEventLogSafetySystemEquipmentEventLogID
Yes
80
IX_SafetySystemEquipmentEventLog_CreatedBySysUserFIDCreatedBySysUserFID80
IX_SafetySystemEquipmentEventLog_EquipEquipFID80
Foreign Keys Foreign Keys
NameColumns
FK_SafetySystemEquipmentEventLog_CreatedBySysUserCreatedBySysUserFID->[dbo].[Sysuser].[SysUserID]
FK_SafetySystemEquipmentEventLog_EquipEquipFID->[dbo].[Equip].[PriKey]
FK_SafetySystemEquipmentEventLog_SafetySystemEquipmentEventTypeSafetySystemEquipmentEventTypeFID->[dbo].[SafetySystemEquipmentEventType].[SafetySystemEquipmentEventTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SafetySystemEquipmentEventLog]
(
[SafetySystemEquipmentEventLogID] [int] NOT NULL IDENTITY(1, 1),
[EquipFID] [int] NOT NULL,
[SafetySystemEquipmentEventTypeFID] [int] NOT NULL,
[CreatedBySysUserFID] [int] NOT NULL,
[CreatedDate] [datetime] NOT NULL,
[EventDate] [datetime] NOT NULL,
[Description] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[SafetySystemEquipmentEventLog] ADD CONSTRAINT [PK_SafetySystemEquipmentEventLog] PRIMARY KEY NONCLUSTERED  ([SafetySystemEquipmentEventLogID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SafetySystemEquipmentEventLog_CreatedBySysUserFID] ON [dbo].[SafetySystemEquipmentEventLog] ([CreatedBySysUserFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SafetySystemEquipmentEventLog_Equip] ON [dbo].[SafetySystemEquipmentEventLog] ([EquipFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SafetySystemEquipmentEventLog] ADD CONSTRAINT [FK_SafetySystemEquipmentEventLog_CreatedBySysUser] FOREIGN KEY ([CreatedBySysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[SafetySystemEquipmentEventLog] ADD CONSTRAINT [FK_SafetySystemEquipmentEventLog_Equip] FOREIGN KEY ([EquipFID]) REFERENCES [dbo].[Equip] ([PriKey])
GO
ALTER TABLE [dbo].[SafetySystemEquipmentEventLog] ADD CONSTRAINT [FK_SafetySystemEquipmentEventLog_SafetySystemEquipmentEventType] FOREIGN KEY ([SafetySystemEquipmentEventTypeFID]) REFERENCES [dbo].[SafetySystemEquipmentEventType] ([SafetySystemEquipmentEventTypeID])
GO
GRANT SELECT ON  [dbo].[SafetySystemEquipmentEventLog] TO [MssExec]
GRANT INSERT ON  [dbo].[SafetySystemEquipmentEventLog] TO [MssExec]
GRANT DELETE ON  [dbo].[SafetySystemEquipmentEventLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[SafetySystemEquipmentEventLog] TO [MssExec]
GO
Uses