Tables [dbo].[XmlUserMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created12:32:29 PM Monday, August 4, 2014
Last Modified3:33:55 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_XmlUserMap: XmlUserMapIDXmlUserMapIDint4
No
1 - 1
Foreign Keys FK_XmlUserMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFID\UserIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID: XmlInterfaceFID\UserID\LaborTypeFIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID: XmlInterfaceFID\UserID\LaborTypeFID\BranchFID\SysUserFIDXmlInterfaceFIDint4
No
Foreign Keys FK_XmlUserMap_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFID\UserIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID: XmlInterfaceFID\UserID\LaborTypeFID\BranchFID\SysUserFIDSysUserFIDint4
No
Indexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFID\UserIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID: XmlInterfaceFID\UserID\LaborTypeFIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID: XmlInterfaceFID\UserID\LaborTypeFID\BranchFID\SysUserFIDUserIDvarchar(256)256
No
Foreign Keys FK_XmlUserMap_LaborType: [dbo].[LaborType].LaborTypeFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFID\UserIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID: XmlInterfaceFID\UserID\LaborTypeFIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID: XmlInterfaceFID\UserID\LaborTypeFID\BranchFID\SysUserFIDLaborTypeFIDint4
No
Foreign Keys FK_XmlUserMap_Branch: [dbo].[Branch].BranchFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFIDIndexes IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID: SysUserFID\XmlInterfaceFID\LaborTypeFID\BranchFID\UserIDIndexes IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID: XmlInterfaceFID\UserID\LaborTypeFID\BranchFID\SysUserFIDBranchFIDint4
Yes
IsNoBranchDefaultbit1
No
((1))
Indexes Indexes
NameColumnsUnique
Primary Key PK_XmlUserMap: XmlUserMapIDPK_XmlUserMapXmlUserMapID
Yes
IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFIDSysUserFID, XmlInterfaceFID, LaborTypeFID, BranchFID
Yes
IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserIDSysUserFID, XmlInterfaceFID, LaborTypeFID, BranchFID, UserID
Yes
IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFIDXmlInterfaceFID, UserID, LaborTypeFID
Yes
IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFIDXmlInterfaceFID, UserID, LaborTypeFID, BranchFID, SysUserFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlUserMap_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
FK_XmlUserMap_LaborTypeLaborTypeFID->[dbo].[LaborType].[PriKey]
FK_XmlUserMap_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
FK_XmlUserMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XmlUserMap]
(
[XmlUserMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[SysUserFID] [int] NOT NULL,
[UserID] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LaborTypeFID] [int] NOT NULL,
[BranchFID] [int] NULL,
[IsNoBranchDefault] [bit] NOT NULL CONSTRAINT [DF_XmlUserMap_IsNoBranchDefault] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [PK_XmlUserMap] PRIMARY KEY NONCLUSTERED  ([XmlUserMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID] UNIQUE NONCLUSTERED  ([SysUserFID], [XmlInterfaceFID], [LaborTypeFID], [BranchFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [IX_XmlUserMap_SysUserFID_XmlInterfaceFID_LaborTypeFID_BranchFID_UserID] UNIQUE NONCLUSTERED  ([SysUserFID], [XmlInterfaceFID], [LaborTypeFID], [BranchFID], [UserID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [UserID], [LaborTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [IX_XmlUserMap_XmlInterfaceFID_UserID_LaborTypeFID_BranchFID_SysUserFID] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [UserID], [LaborTypeFID], [BranchFID], [SysUserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [FK_XmlUserMap_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [FK_XmlUserMap_LaborType] FOREIGN KEY ([LaborTypeFID]) REFERENCES [dbo].[LaborType] ([PriKey])
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [FK_XmlUserMap_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[XmlUserMap] ADD CONSTRAINT [FK_XmlUserMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlUserMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlUserMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlUserMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlUserMap] TO [MssExec]
GO
Uses
Used By