Tables [dbo].[ShAttributes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:07 AM Thursday, March 21, 2019
Last Modified1:15:56 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_SHAttributes: ShAttributeIDShAttributeIDint4
False
2000 - 1
AttributeNamevarchar(30)30
False
Descriptionvarchar(255)255
True
Foreign Keys FK_ShAttributes_ShAttributeDataTypeID_ShAttributeDataTypes: [dbo].[ShAttributeDataTypes].ShAttributeDataTypeIDShAttributeDataTypeIDint4
False
Foreign Keys FK_ShAttributes_SystemDefinitionID_ShAttributesSystemDefinitions: [dbo].[ShAttributesSystemDefinitions].SystemDefinitionIDSystemDefinitionIDint4
False
IsActivebit1
False
((1))
LookUpCtrlTypevarchar(50)50
True
ResponseConstraintvarchar(1024)1024
True
CustomStoredProcedurevarchar(255)255
True
CreatorIDvarchar(8)8
False
UpdatorIDvarchar(8)8
False
CreateDatedatetime8
False
(getdate())
UpdateDatedatetime8
False
(getdate())
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_SHAttributes: ShAttributeIDPK_SHAttributesShAttributeID
True
80
NameColumns
FK_ShAttributes_ShAttributeDataTypeID_ShAttributeDataTypesShAttributeDataTypeID->[dbo].[ShAttributeDataTypes].[ShAttributeDataTypeID]
FK_ShAttributes_SystemDefinitionID_ShAttributesSystemDefinitionsSystemDefinitionID->[dbo].[ShAttributesSystemDefinitions].[SystemDefinitionID]
CREATE TABLE [dbo].[ShAttributes]
(
[ShAttributeID] [int] NOT NULL IDENTITY(2000, 1),
[AttributeName] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ShAttributeDataTypeID] [int] NOT NULL,
[SystemDefinitionID] [int] NOT NULL,
[IsActive] [bit] NOT NULL CONSTRAINT [DF_SHAttributes_IsActive] DEFAULT ((1)),
[LookUpCtrlType] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ResponseConstraint] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CustomStoredProcedure] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SHAttributes_CreateDate] DEFAULT (getdate()),
[UpdateDate] [datetime] NOT NULL CONSTRAINT [DF_SHAttributes_UpdateDate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShAttributes] ADD CONSTRAINT [PK_SHAttributes] PRIMARY KEY CLUSTERED  ([ShAttributeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShAttributes] ADD CONSTRAINT [FK_ShAttributes_ShAttributeDataTypeID_ShAttributeDataTypes] FOREIGN KEY ([ShAttributeDataTypeID]) REFERENCES [dbo].[ShAttributeDataTypes] ([ShAttributeDataTypeID])
GO
ALTER TABLE [dbo].[ShAttributes] ADD CONSTRAINT [FK_ShAttributes_SystemDefinitionID_ShAttributesSystemDefinitions] FOREIGN KEY ([SystemDefinitionID]) REFERENCES [dbo].[ShAttributesSystemDefinitions] ([SystemDefinitionID])
GO