Tables [dbo].[PersonnelDocumentTypeUserMap]
Properties
PropertyValue
Row Count (~)0
Created8:30:57 AM Friday, December 7, 2018
Last Modified8:30:58 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_PersonnelDocumentTypeUserMap: PersonnelDocumentTypeUserMapIDPersonnelDocumentTypeUserMapIDint4
No
1 - 1
Foreign Keys FK_PersonnelDocumentTypeUserMap_SysUser: [dbo].[Sysuser].SysUserFIDIndexes IX_PersonnelDocumentType_SysUserFID_PersonnelDocumentTypeFID: SysUserFID\PersonnelDocumentTypeFIDSysUserFIDint4
No
Foreign Keys FK_PersonnelDocumentTypeUserMap_PersonnelDocumentType: [dbo].[PersonnelDocumentType].PersonnelDocumentTypeFIDIndexes IX_PersonnelDocumentType_SysUserFID_PersonnelDocumentTypeFID: SysUserFID\PersonnelDocumentTypeFIDPersonnelDocumentTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PersonnelDocumentTypeUserMap: PersonnelDocumentTypeUserMapIDPK_PersonnelDocumentTypeUserMapPersonnelDocumentTypeUserMapID
Yes
IX_PersonnelDocumentType_SysUserFID_PersonnelDocumentTypeFIDSysUserFID, PersonnelDocumentTypeFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_PersonnelDocumentTypeUserMap_PersonnelDocumentTypePersonnelDocumentTypeFID->[dbo].[PersonnelDocumentType].[PersonnelDocumentTypeID]
FK_PersonnelDocumentTypeUserMap_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PersonnelDocumentTypeUserMap]
(
[PersonnelDocumentTypeUserMapID] [int] NOT NULL IDENTITY(1, 1),
[SysUserFID] [int] NOT NULL,
[PersonnelDocumentTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentTypeUserMap] ADD CONSTRAINT [PK_PersonnelDocumentTypeUserMap] PRIMARY KEY CLUSTERED  ([PersonnelDocumentTypeUserMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentTypeUserMap] ADD CONSTRAINT [IX_PersonnelDocumentType_SysUserFID_PersonnelDocumentTypeFID] UNIQUE NONCLUSTERED  ([SysUserFID], [PersonnelDocumentTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentTypeUserMap] ADD CONSTRAINT [FK_PersonnelDocumentTypeUserMap_PersonnelDocumentType] FOREIGN KEY ([PersonnelDocumentTypeFID]) REFERENCES [dbo].[PersonnelDocumentType] ([PersonnelDocumentTypeID])
GO
ALTER TABLE [dbo].[PersonnelDocumentTypeUserMap] ADD CONSTRAINT [FK_PersonnelDocumentTypeUserMap_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[PersonnelDocumentTypeUserMap] TO [MssExec]
GRANT INSERT ON  [dbo].[PersonnelDocumentTypeUserMap] TO [MssExec]
GRANT DELETE ON  [dbo].[PersonnelDocumentTypeUserMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[PersonnelDocumentTypeUserMap] TO [MssExec]
GO
Uses