CREATE TABLE [dbo].[ci_actions]
(
[id] [int] NOT NULL,
[wf_template_id] [int] NULL,
[action_title] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[group_id] [binary] (16) NULL,
[analyst_id] [binary] (16) NULL,
[action_order] [int] NULL,
[predefined] [int] NULL,
[status_current_id] [int] NULL,
[unpublish] [int] NULL,
[unretire] [int] NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ci_actions] ADD CONSTRAINT [XPKci_actions] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x1] ON [dbo].[ci_actions] ([action_order]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x2] ON [dbo].[ci_actions] ([analyst_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x3] ON [dbo].[ci_actions] ([group_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [ci_actions_x0] ON [dbo].[ci_actions] ([id], [wf_template_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x4] ON [dbo].[ci_actions] ([status_current_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x7] ON [dbo].[ci_actions] ([tenant]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x5] ON [dbo].[ci_actions] ([unpublish]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_actions_x6] ON [dbo].[ci_actions] ([unretire]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[ci_actions] TO [service_desk_admin_group]
GRANT INSERT ON [dbo].[ci_actions] TO [service_desk_admin_group]
GRANT DELETE ON [dbo].[ci_actions] TO [service_desk_admin_group]
GRANT UPDATE ON [dbo].[ci_actions] TO [service_desk_admin_group]
GO