Tables [dbo].[PersonnelDocumentType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:30:57 AM Friday, December 7, 2018
Last Modified8:34:30 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_PersonnelDocumentType: PersonnelDocumentTypeIDPersonnelDocumentTypeIDint4
No
1 - 1
Foreign Keys FK_PersonnelDocumentType_PersonnelDocumentGroup: [dbo].[PersonnelDocumentGroup].PersonnelDocumentGroupFIDPersonnelDocumentGroupFIDint4
No
Indexes IX_PersonnelDocumentType_Description: DescriptionDescriptionvarchar(64)64
No
Inactivebit1
No
((0))
IsSecurebit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PersonnelDocumentType: PersonnelDocumentTypeIDPK_PersonnelDocumentTypePersonnelDocumentTypeID
Yes
IX_PersonnelDocumentType_DescriptionDescription
Yes
Foreign Keys Foreign Keys
NameColumns
FK_PersonnelDocumentType_PersonnelDocumentGroupPersonnelDocumentGroupFID->[dbo].[PersonnelDocumentGroup].[PersonnelDocumentGroupID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PersonnelDocumentType]
(
[PersonnelDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[PersonnelDocumentGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_PersonnelDocumentType_Inactive] DEFAULT ((0)),
[IsSecure] [bit] NOT NULL CONSTRAINT [DF_PersonnelDocumentType_IsSecure] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentType] ADD CONSTRAINT [PK_PersonnelDocumentType] PRIMARY KEY CLUSTERED  ([PersonnelDocumentTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentType] ADD CONSTRAINT [IX_PersonnelDocumentType_Description] UNIQUE NONCLUSTERED  ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersonnelDocumentType] ADD CONSTRAINT [FK_PersonnelDocumentType_PersonnelDocumentGroup] FOREIGN KEY ([PersonnelDocumentGroupFID]) REFERENCES [dbo].[PersonnelDocumentGroup] ([PersonnelDocumentGroupID])
GO
GRANT SELECT ON  [dbo].[PersonnelDocumentType] TO [MssExec]
GRANT INSERT ON  [dbo].[PersonnelDocumentType] TO [MssExec]
GRANT DELETE ON  [dbo].[PersonnelDocumentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[PersonnelDocumentType] TO [MssExec]
GO
Uses
Used By