Tables [dbo].[ServeqTimes]
Properties
PropertyValue
Row Count (~)107
Created4:57:08 PM Thursday, September 7, 2006
Last Modified8:51:05 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ServeqTimes: PriKeyPriKeyint4
No
1 - 1
Foreign Keys FK_ServeqTimes_Serveq: [dbo].[Serveq].SEqPriKeyIndexes IX_ServeqTimes_SEqPriKey: SEqPriKey\IsFromMobileApiSEqPriKeyint4
No
StartTimedatetime8
No
EndTimedatetime8
No
OverTimebit1
No
Foreign Keys FK_ServeqTimes_Sysuser: [dbo].[Sysuser].ActualCreatedByIndexes IX_ServeqTimes_ActualCreatedBy: ActualCreatedByActualCreatedByint4
Yes
Indexes IX_ServeqTimes_SEqPriKey: SEqPriKey\IsFromMobileApiIsFromMobileApibit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_ServeqTimes: PriKeyPK_ServeqTimesPriKey
Yes
80
IX_ServeqTimes_ActualCreatedByActualCreatedBy
IX_ServeqTimes_SEqPriKeySEqPriKey, IsFromMobileApi
Foreign Keys Foreign Keys
NameColumns
FK_ServeqTimes_SysuserActualCreatedBy->[dbo].[Sysuser].[SysUserID]
FK_ServeqTimes_ServeqSEqPriKey->[dbo].[Serveq].[PRIKEY]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ServeqTimes]
(
[PriKey] [int] NOT NULL IDENTITY(1, 1),
[SEqPriKey] [int] NOT NULL,
[StartTime] [datetime] NOT NULL,
[EndTime] [datetime] NOT NULL,
[OverTime] [bit] NOT NULL,
[ActualCreatedBy] [int] NULL,
[IsFromMobileApi] [bit] NOT NULL CONSTRAINT [DF_ServeqTimes_IsFromMobileApi] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServeqTimes] ADD CONSTRAINT [PK_ServeqTimes] PRIMARY KEY CLUSTERED  ([PriKey]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServeqTimes_ActualCreatedBy] ON [dbo].[ServeqTimes] ([ActualCreatedBy]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ServeqTimes_SEqPriKey] ON [dbo].[ServeqTimes] ([SEqPriKey], [IsFromMobileApi]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ServeqTimes] ADD CONSTRAINT [FK_ServeqTimes_Sysuser] FOREIGN KEY ([ActualCreatedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[ServeqTimes] ADD CONSTRAINT [FK_ServeqTimes_Serveq] FOREIGN KEY ([SEqPriKey]) REFERENCES [dbo].[Serveq] ([PRIKEY])
GO
GRANT SELECT ON  [dbo].[ServeqTimes] TO [MssExec]
GRANT INSERT ON  [dbo].[ServeqTimes] TO [MssExec]
GRANT DELETE ON  [dbo].[ServeqTimes] TO [MssExec]
GRANT UPDATE ON  [dbo].[ServeqTimes] TO [MssExec]
GO
Uses
Used By