Tables [dbo].[EquipmentDocumentTypeUserMap]
Properties
PropertyValue
Row Count (~)0
Created8:34:30 AM Friday, December 7, 2018
Last Modified8:34:30 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_EquipmentDocumentTypeUserMap: EquipmentDocumentTypeUserMapIDEquipmentDocumentTypeUserMapIDint4
No
1 - 1
Foreign Keys FK_EquipmentDocumentTypeUserMap_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_EquipmentDocumentType_SysUserFID_EquipmentDocumentTypeFID: SysUserFID\EquipmentDocumentTypeFIDSysUserFIDint4
No
Foreign Keys FK_EquipmentDocumentTypeUserMap_EquipmentDocumentType: [dbo].[EquipmentDocumentType].EquipmentDocumentTypeFIDIndexes IX_EquipmentDocumentType_SysUserFID_EquipmentDocumentTypeFID: SysUserFID\EquipmentDocumentTypeFIDEquipmentDocumentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_EquipmentDocumentTypeUserMap: EquipmentDocumentTypeUserMapIDPK_EquipmentDocumentTypeUserMapEquipmentDocumentTypeUserMapID
Yes
IX_EquipmentDocumentType_SysUserFID_EquipmentDocumentTypeFIDSysUserFID, EquipmentDocumentTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_EquipmentDocumentTypeUserMap_EquipmentDocumentTypeEquipmentDocumentTypeFID->[dbo].[EquipmentDocumentType].[EquipmentDocumentTypeID]
FK_EquipmentDocumentTypeUserMap_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[EquipmentDocumentTypeUserMap]
(
[EquipmentDocumentTypeUserMapID] [int] NOT NULL IDENTITY(1, 1),
[SysUserFID] [int] NOT NULL,
[EquipmentDocumentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentTypeUserMap] ADD CONSTRAINT [PK_EquipmentDocumentTypeUserMap] PRIMARY KEY CLUSTERED  ([EquipmentDocumentTypeUserMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentTypeUserMap] ADD CONSTRAINT [IX_EquipmentDocumentType_SysUserFID_EquipmentDocumentTypeFID] UNIQUE NONCLUSTERED  ([SysUserFID], [EquipmentDocumentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentTypeUserMap] ADD CONSTRAINT [FK_EquipmentDocumentTypeUserMap_EquipmentDocumentType] FOREIGN KEY ([EquipmentDocumentTypeFID]) REFERENCES [dbo].[EquipmentDocumentType] ([EquipmentDocumentTypeID])
GO
ALTER TABLE [dbo].[EquipmentDocumentTypeUserMap] ADD CONSTRAINT [FK_EquipmentDocumentTypeUserMap_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[EquipmentDocumentTypeUserMap] TO [MssExec]
GRANT INSERT ON  [dbo].[EquipmentDocumentTypeUserMap] TO [MssExec]
GRANT DELETE ON  [dbo].[EquipmentDocumentTypeUserMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[EquipmentDocumentTypeUserMap] TO [MssExec]
GO
Uses