Tables [dbo].[SafetySystemPersonnelEventLog]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created5:32:31 PM Wednesday, January 2, 2008
Last Modified12:32:37 PM Monday, August 4, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SafetySystemPersonnelEventLog: SafetySystemPersonnelEventLogIDSafetySystemPersonnelEventLogIDint4
No
1 - 1
Foreign Keys FK_SafetySystemPersonnelEventLog_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_SafetySystemPersonnelEventLog_SysUser: SysUserFIDSysUserFIDint4
No
Foreign Keys FK_SafetySystemPersonnelEventLog_SafetySystemPersonnelEventType: [dbo].[SafetySystemPersonnelEventType].SafetySystemPersonnelEventTypeFIDSafetySystemPersonnelEventTypeFIDint4
No
Foreign Keys FK_SafetySystemPersonnelEventLog_CreatedBySysUser: [dbo].[Sysuser].CreatedBySysUserFIDIndexes IX_SafetySystemPersonnelEventLog_CreatedBySysUser: CreatedBySysUserFIDCreatedBySysUserFIDint4
No
CreatedDatedatetime8
No
EventDatedatetime8
No
Descriptiontextmax
No
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_SafetySystemPersonnelEventLog: SafetySystemPersonnelEventLogIDPK_SafetySystemPersonnelEventLogSafetySystemPersonnelEventLogID
Yes
80
IX_SafetySystemPersonnelEventLog_CreatedBySysUserCreatedBySysUserFID80
IX_SafetySystemPersonnelEventLog_SysUserSysUserFID80
Foreign Keys Foreign Keys
NameColumns
FK_SafetySystemPersonnelEventLog_CreatedBySysUserCreatedBySysUserFID->[dbo].[Sysuser].[SysUserID]
FK_SafetySystemPersonnelEventLog_SafetySystemPersonnelEventTypeSafetySystemPersonnelEventTypeFID->[dbo].[SafetySystemPersonnelEventType].[SafetySystemPersonnelEventTypeID]
FK_SafetySystemPersonnelEventLog_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SafetySystemPersonnelEventLog]
(
[SafetySystemPersonnelEventLogID] [int] NOT NULL IDENTITY(1, 1),
[SysUserFID] [int] NOT NULL,
[SafetySystemPersonnelEventTypeFID] [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].[SafetySystemPersonnelEventLog] ADD CONSTRAINT [PK_SafetySystemPersonnelEventLog] PRIMARY KEY NONCLUSTERED  ([SafetySystemPersonnelEventLogID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SafetySystemPersonnelEventLog_CreatedBySysUser] ON [dbo].[SafetySystemPersonnelEventLog] ([CreatedBySysUserFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SafetySystemPersonnelEventLog_SysUser] ON [dbo].[SafetySystemPersonnelEventLog] ([SysUserFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SafetySystemPersonnelEventLog] ADD CONSTRAINT [FK_SafetySystemPersonnelEventLog_CreatedBySysUser] FOREIGN KEY ([CreatedBySysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[SafetySystemPersonnelEventLog] ADD CONSTRAINT [FK_SafetySystemPersonnelEventLog_SafetySystemPersonnelEventType] FOREIGN KEY ([SafetySystemPersonnelEventTypeFID]) REFERENCES [dbo].[SafetySystemPersonnelEventType] ([SafetySystemPersonnelEventTypeID])
GO
ALTER TABLE [dbo].[SafetySystemPersonnelEventLog] ADD CONSTRAINT [FK_SafetySystemPersonnelEventLog_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[SafetySystemPersonnelEventLog] TO [MssExec]
GRANT INSERT ON  [dbo].[SafetySystemPersonnelEventLog] TO [MssExec]
GRANT DELETE ON  [dbo].[SafetySystemPersonnelEventLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[SafetySystemPersonnelEventLog] TO [MssExec]
GO
Uses