CREATE TABLE [dbo].[CoUserGroupsSecurityResourceRights]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[GroupID] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ResourceRightsFlag] [bigint] NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_CoUserGroupsSecurityResourceRights_CreateDate] DEFAULT (getutcdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_CoUserGroupsSecurityResourceRights_LastUpdate] DEFAULT (getutcdate()),
[timestamp] [timestamp] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CoUserGroupsSecurityResourceRights] ADD CONSTRAINT [PK_CoUserGroupsSecurityResourceRights] PRIMARY KEY CLUSTERED ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CoUserGroupsSecurityResourceRights] ADD CONSTRAINT [FK_CoUserGroupsSecurityResourceRights_GroupID_CoGroups] FOREIGN KEY ([GroupID]) REFERENCES [dbo].[CoGroups] ([GroupID])
GO