CREATE TABLE [dbo].[ShTrackingValueGroups]
(
[ShTrackingValueGroupID] [int] NOT NULL IDENTITY(1, 1),
[ShEntryTypeID] [int] NOT NULL,
[ShTrackingGroupID] [int] NOT NULL,
[LinkID] [int] NULL,
[IsActive] [bit] NOT NULL CONSTRAINT [DF_ShTrackingValueGroups_IsActive] DEFAULT ((1))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShTrackingValueGroups] ADD CONSTRAINT [PK_ShTrackingValueGroups] PRIMARY KEY CLUSTERED ([ShTrackingValueGroupID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShTrackingValueGroups] ADD CONSTRAINT [FK_ShTrackingValueGroups_ShEntryTypeID_ShEntryTypes] FOREIGN KEY ([ShEntryTypeID]) REFERENCES [dbo].[ShEntryTypes] ([ShEntryTypeID])
GO