CREATE TABLE [dbo].[ci_doc_templates]
(
[id] [int] NOT NULL,
[template_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[is_predefined] [int] NULL,
[is_default] [int] NULL,
[page_html] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[tenant] [binary] (16) NULL,
[doc_id] [int] NULL,
[hide_t] [int] NULL,
[hide_s] [int] NULL,
[hide_p] [int] NULL,
[hide_r] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ci_doc_templates] ADD CONSTRAINT [XPKci_doc_templates] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_doc_templates_x0] ON [dbo].[ci_doc_templates] ([is_default]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [ci_doc_templates_x1] ON [dbo].[ci_doc_templates] ([template_name]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ci_doc_templates_x2] ON [dbo].[ci_doc_templates] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[ci_doc_templates] TO [service_desk_admin_group]
GRANT INSERT ON [dbo].[ci_doc_templates] TO [service_desk_admin_group]
GRANT DELETE ON [dbo].[ci_doc_templates] TO [service_desk_admin_group]
GRANT UPDATE ON [dbo].[ci_doc_templates] TO [service_desk_admin_group]
GO