Tables [dbo].[EquipmentDocumentType]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
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 NullsIdentityDefault
Cluster Primary Key PK_EquipmentDocumentType: EquipmentDocumentTypeIDEquipmentDocumentTypeIDint4
No
1 - 1
Foreign Keys FK_EquipmentDocumentType_EquipmentDocumentGroup: [dbo].[EquipmentDocumentGroup].EquipmentDocumentGroupFIDEquipmentDocumentGroupFIDint4
No
Indexes IX_EquipmentDocumentType_Description: DescriptionDescriptionvarchar(64)64
No
Inactivebit1
No
((0))
IsSecurebit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_EquipmentDocumentType: EquipmentDocumentTypeIDPK_EquipmentDocumentTypeEquipmentDocumentTypeID
Yes
IX_EquipmentDocumentType_DescriptionDescription
Yes
Foreign Keys Foreign Keys
NameColumns
FK_EquipmentDocumentType_EquipmentDocumentGroupEquipmentDocumentGroupFID->[dbo].[EquipmentDocumentGroup].[EquipmentDocumentGroupID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[EquipmentDocumentType]
(
[EquipmentDocumentTypeID] [int] NOT NULL IDENTITY(1, 1),
[EquipmentDocumentGroupFID] [int] NOT NULL,
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Inactive] [bit] NOT NULL CONSTRAINT [DF_EquipmentDocumentType_Inactive] DEFAULT ((0)),
[IsSecure] [bit] NOT NULL CONSTRAINT [DF_EquipmentDocumentType_IsSecure] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [PK_EquipmentDocumentType] PRIMARY KEY CLUSTERED  ([EquipmentDocumentTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [IX_EquipmentDocumentType_Description] UNIQUE NONCLUSTERED  ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EquipmentDocumentType] ADD CONSTRAINT [FK_EquipmentDocumentType_EquipmentDocumentGroup] FOREIGN KEY ([EquipmentDocumentGroupFID]) REFERENCES [dbo].[EquipmentDocumentGroup] ([EquipmentDocumentGroupID])
GO
GRANT SELECT ON  [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT INSERT ON  [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT DELETE ON  [dbo].[EquipmentDocumentType] TO [MssExec]
GRANT UPDATE ON  [dbo].[EquipmentDocumentType] TO [MssExec]
GO
Uses
Used By