
[dbo].[harformattachment]
CREATE TABLE [dbo].[harformattachment]
(
[attachmentobjid] [int] NOT NULL,
[attachmentname] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[attachmenttype] [int] NOT NULL,
[formobjid] [int] NOT NULL,
[creatorid] [int] NOT NULL,
[creationtime] [datetime] NOT NULL,
[filesize] [int] NOT NULL,
[filedata] [image] NULL,
[filecompressed] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL CONSTRAINT [DF__harformat__filec__36DC0ACC] DEFAULT ('N')
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[harformattachment] ADD CONSTRAINT [harformmattachment_pk] PRIMARY KEY CLUSTERED ([attachmentobjid]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [HARFORMATTACHMENT_IND2] ON [dbo].[harformattachment] ([attachmentname], [formobjid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [baseidx_harformattachment] ON [dbo].[harformattachment] ([attachmentobjid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [HARFORMATTACHMENT_IND] ON [dbo].[harformattachment] ([formobjid]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[harformattachment] TO [harvest_group]
GRANT INSERT ON [dbo].[harformattachment] TO [harvest_group]
GRANT DELETE ON [dbo].[harformattachment] TO [harvest_group]
GRANT UPDATE ON [dbo].[harformattachment] TO [harvest_group]
GRANT SELECT ON [dbo].[harformattachment] TO [harvest_rep]
GO