Tables [dbo].[XmlInterfaceMobileCrewTimeActivityMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:37:43 AM Friday, December 7, 2018
Last Modified9:37:43 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_XmlInterfaceMobileCrewTimeActivityMap: XmlInterfaceMobileCrewTimeActivityMapIDXmlInterfaceMobileCrewTimeActivityMapIDint4
No
1 - 1
Foreign Keys FK_XmlInterfaceMobileCrewTimeActivityMap_MobileCrewTimeActivity: [dbo].[MobileCrewTimeActivity].MobileCrewTimeActivityFIDIndexes IX_XmlInterfaceMobileCrewTimeActivityMap_XMLInterface_MobileCrewTimeActivity_IsPunchInActivity: XmlInterfaceFID\MobileCrewTimeActivityFID\IsPunchInActivityMobileCrewTimeActivityFIDint4
No
Foreign Keys FK_XmlInterfaceMobileCrewTimeActivityMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlInterfaceMobileCrewTimeActivityMap_XMLInterface_MobileCrewTimeActivity_IsPunchInActivity: XmlInterfaceFID\MobileCrewTimeActivityFID\IsPunchInActivityXmlInterfaceFIDint4
No
ExternalActivityCodevarchar(16)16
No
Indexes IX_XmlInterfaceMobileCrewTimeActivityMap_XMLInterface_MobileCrewTimeActivity_IsPunchInActivity: XmlInterfaceFID\MobileCrewTimeActivityFID\IsPunchInActivityIsPunchInActivitybit1
No
((0))
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlInterfaceMobileCrewTimeActivityMap: XmlInterfaceMobileCrewTimeActivityMapIDPK_XmlInterfaceMobileCrewTimeActivityMapXmlInterfaceMobileCrewTimeActivityMapID
Yes
IX_XmlInterfaceMobileCrewTimeActivityMap_XMLInterface_MobileCrewTimeActivity_IsPunchInActivityXmlInterfaceFID, MobileCrewTimeActivityFID, IsPunchInActivity
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_XmlInterfaceMobileCrewTimeActivityMap_MobileCrewTimeActivityCascadeMobileCrewTimeActivityFID->[dbo].[MobileCrewTimeActivity].[MobileCrewTimeActivityID]
FK_XmlInterfaceMobileCrewTimeActivityMap_XmlInterfaceCascadeXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlInterfaceMobileCrewTimeActivityMap]
(
[XmlInterfaceMobileCrewTimeActivityMapID] [int] NOT NULL IDENTITY(1, 1),
[MobileCrewTimeActivityFID] [int] NOT NULL,
[XmlInterfaceFID] [int] NOT NULL,
[ExternalActivityCode] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsPunchInActivity] [bit] NOT NULL CONSTRAINT [DF_XmlInterfaceMobileCrewTimeActivityMap_IsPunchInActivity] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceMobileCrewTimeActivityMap] ADD CONSTRAINT [PK_XmlInterfaceMobileCrewTimeActivityMap] PRIMARY KEY NONCLUSTERED  ([XmlInterfaceMobileCrewTimeActivityMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceMobileCrewTimeActivityMap] ADD CONSTRAINT [IX_XmlInterfaceMobileCrewTimeActivityMap_XMLInterface_MobileCrewTimeActivity_IsPunchInActivity] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [MobileCrewTimeActivityFID], [IsPunchInActivity]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlInterfaceMobileCrewTimeActivityMap] ADD CONSTRAINT [FK_XmlInterfaceMobileCrewTimeActivityMap_MobileCrewTimeActivity] FOREIGN KEY ([MobileCrewTimeActivityFID]) REFERENCES [dbo].[MobileCrewTimeActivity] ([MobileCrewTimeActivityID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[XmlInterfaceMobileCrewTimeActivityMap] ADD CONSTRAINT [FK_XmlInterfaceMobileCrewTimeActivityMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[XmlInterfaceMobileCrewTimeActivityMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlInterfaceMobileCrewTimeActivityMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlInterfaceMobileCrewTimeActivityMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlInterfaceMobileCrewTimeActivityMap] TO [MssExec]
GO
Uses