Tables [dbo].[LSCrewTimes]
Properties
PropertyValue
Row Count (~)250
Created4:57:08 PM Thursday, September 7, 2006
Last Modified8:58:10 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_LSCrewTimes: PriKeyPriKeyint4
No
1 - 1
Cluster Key IX_LSCrewTimes_LSCPriKey_StartTime: LSCPriKey\StartTimeForeign Keys FK_LSCrewTimes_LSCrew: [dbo].[LSCrew].LSCPriKeyLSCPriKeyint4
No
Cluster Key IX_LSCrewTimes_LSCPriKey_StartTime: LSCPriKey\StartTimeIndexes IX_LSCrewTimes_StartTime: EndTime\StartTimeStartTimedatetime8
No
Indexes IX_LSCrewTimes_StartTime: EndTime\StartTimeEndTimedatetime8
No
OverTimebit1
No
((0))
Foreign Keys FK_LSCrewTimes_Sysuser: [dbo].[Sysuser].ActualCreatedByActualCreatedByint4
Yes
Foreign Keys FK_LSCrewTimes_MobileCrewActivity: [dbo].[MobileCrewTimeActivity].MobileCrewTimeActivityFIDMobileCrewTimeActivityFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_LSCrewTimes: PriKeyPK_LSCrewTimesPriKey
Yes
Cluster Key IX_LSCrewTimes_LSCPriKey_StartTime: LSCPriKey\StartTimeIX_LSCrewTimes_LSCPriKey_StartTimeLSCPriKey, StartTime
IX_LSCrewTimes_StartTimeEndTime, StartTime
Foreign Keys Foreign Keys
NameColumns
FK_LSCrewTimes_SysuserActualCreatedBy->[dbo].[Sysuser].[SysUserID]
FK_LSCrewTimes_LSCrewLSCPriKey->[dbo].[LSCrew].[PriKey]
FK_LSCrewTimes_MobileCrewActivityMobileCrewTimeActivityFID->[dbo].[MobileCrewTimeActivity].[MobileCrewTimeActivityID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[LSCrewTimes]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[LSCPriKey] [int] NOT NULL,
[StartTime] [datetime] NOT NULL,
[EndTime] [datetime] NOT NULL,
[OverTime] [bit] NOT NULL CONSTRAINT [DF_LSCrewTimes_OverTime] DEFAULT ((0)),
[ActualCreatedBy] [int] NULL,
[MobileCrewTimeActivityFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSCrewTimes] ADD CONSTRAINT [PK_LSCrewTimes] PRIMARY KEY NONCLUSTERED  ([PriKey]) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_LSCrewTimes_LSCPriKey_StartTime] ON [dbo].[LSCrewTimes] ([LSCPriKey], [StartTime]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LSCrewTimes_StartTime] ON [dbo].[LSCrewTimes] ([StartTime]) INCLUDE ([EndTime]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LSCrewTimes] ADD CONSTRAINT [FK_LSCrewTimes_Sysuser] FOREIGN KEY ([ActualCreatedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[LSCrewTimes] ADD CONSTRAINT [FK_LSCrewTimes_LSCrew] FOREIGN KEY ([LSCPriKey]) REFERENCES [dbo].[LSCrew] ([PriKey])
GO
ALTER TABLE [dbo].[LSCrewTimes] ADD CONSTRAINT [FK_LSCrewTimes_MobileCrewActivity] FOREIGN KEY ([MobileCrewTimeActivityFID]) REFERENCES [dbo].[MobileCrewTimeActivity] ([MobileCrewTimeActivityID])
GO
GRANT SELECT ON  [dbo].[LSCrewTimes] TO [MssExec]
GRANT INSERT ON  [dbo].[LSCrewTimes] TO [MssExec]
GRANT DELETE ON  [dbo].[LSCrewTimes] TO [MssExec]
GRANT UPDATE ON  [dbo].[LSCrewTimes] TO [MssExec]
GO
Uses
Used By