Tables [dbo].[MobileCrewTimeActivity]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1
Created8:49:55 AM Friday, December 7, 2018
Last Modified9:03:49 AM Friday, November 22, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_MobileCrewTimeActivity: MobileCrewTimeActivityIDMobileCrewTimeActivityIDint4
No
1 - 1
Indexes IX_MobileCrewTimeActivity_CrewMemberFID: ActivityDescriptionActivityDescriptionvarchar(64)64
No
Indexes IX_MobileCrewTimeActivity_MobileDescription: MobileDescriptionMobileDescriptionvarchar(15)15
No
IsDefaultActivitybit1
No
((0))
ActivityCodevarchar(32)32
Yes
Inactivebit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MobileCrewTimeActivity: MobileCrewTimeActivityIDPK_MobileCrewTimeActivityMobileCrewTimeActivityID
Yes
IX_MobileCrewTimeActivity_CrewMemberFIDActivityDescription
Yes
IX_MobileCrewTimeActivity_MobileDescriptionMobileDescription
Yes
Check Constraints Check Constraints
NameConstraint
CK_MobileCrewTimeActivity_IsDefaultActivity((0)=[dbo].[CheckForMultipleDefaultCrewActivity]([MobileCrewTimeActivityID],[IsDefaultActivity]))
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MobileCrewTimeActivity]
(
[MobileCrewTimeActivityID] [int] NOT NULL IDENTITY(1, 1),
[ActivityDescription] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[MobileDescription] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsDefaultActivity] [bit] NOT NULL CONSTRAINT [DF_MobileCrewTimeActivity_IsDefaultActivity] DEFAULT ((0)),
[ActivityCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_MobileCrewTimeActivity_Inactive] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeActivity] ADD CONSTRAINT [CK_MobileCrewTimeActivity_IsDefaultActivity] CHECK (((0)=[dbo].[CheckForMultipleDefaultCrewActivity]([MobileCrewTimeActivityID],[IsDefaultActivity])))
GO
ALTER TABLE [dbo].[MobileCrewTimeActivity] ADD CONSTRAINT [PK_MobileCrewTimeActivity] PRIMARY KEY CLUSTERED  ([MobileCrewTimeActivityID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeActivity] ADD CONSTRAINT [IX_MobileCrewTimeActivity_CrewMemberFID] UNIQUE NONCLUSTERED  ([ActivityDescription]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeActivity] ADD CONSTRAINT [IX_MobileCrewTimeActivity_MobileDescription] UNIQUE NONCLUSTERED  ([MobileDescription]) ON [PRIMARY]
GO
GRANT SELECT ON  [dbo].[MobileCrewTimeActivity] TO [MssExec]
GRANT INSERT ON  [dbo].[MobileCrewTimeActivity] TO [MssExec]
GRANT DELETE ON  [dbo].[MobileCrewTimeActivity] TO [MssExec]
GRANT UPDATE ON  [dbo].[MobileCrewTimeActivity] TO [MssExec]
GO
Uses
Used By