CREATE TABLE [dbo].[response]
(
[id] [int] NOT NULL,
[del] [int] NOT NULL,
[persid] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[sym] [nvarchar] (60) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[response] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[response_owner] [binary] (16) NULL,
[last_mod_dt] [int] NULL,
[last_mod_by] [binary] (16) NULL,
[cr_flag] [int] NULL,
[in_flag] [int] NULL,
[pr_flag] [int] NULL,
[chg_flag] [int] NULL,
[iss_flag] [int] NULL,
[tenant] [binary] (16) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[response] ADD CONSTRAINT [XPKresponse] PRIMARY KEY CLUSTERED ([id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x5] ON [dbo].[response] ([chg_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x2] ON [dbo].[response] ([cr_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x3] ON [dbo].[response] ([in_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x6] ON [dbo].[response] ([iss_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x4] ON [dbo].[response] ([pr_flag]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x1] ON [dbo].[response] ([response_owner]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [response_x0] ON [dbo].[response] ([sym], [tenant]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [response_x7] ON [dbo].[response] ([tenant]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[response] TO [service_desk_admin_group]
GRANT INSERT ON [dbo].[response] TO [service_desk_admin_group]
GRANT DELETE ON [dbo].[response] TO [service_desk_admin_group]
GRANT UPDATE ON [dbo].[response] TO [service_desk_admin_group]
GRANT SELECT ON [dbo].[response] TO [service_desk_ro_group]
GO