
[dbo].[harpasswordhistory]
CREATE TABLE [dbo].[harpasswordhistory]
(
[usrobjid] [int] NOT NULL,
[prevpsswds] [image] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[harpasswordhistory] ADD CONSTRAINT [harpasswordhistory_pk] PRIMARY KEY CLUSTERED ([usrobjid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[harpasswordhistory] ADD CONSTRAINT [HARPASSWORDHISTORY_FK] FOREIGN KEY ([usrobjid]) REFERENCES [dbo].[haruser] ([usrobjid]) ON DELETE CASCADE
GO
GRANT SELECT ON [dbo].[harpasswordhistory] TO [harvest_group]
GRANT INSERT ON [dbo].[harpasswordhistory] TO [harvest_group]
GRANT DELETE ON [dbo].[harpasswordhistory] TO [harvest_group]
GRANT UPDATE ON [dbo].[harpasswordhistory] TO [harvest_group]
GRANT SELECT ON [dbo].[harpasswordhistory] TO [harvest_rep]
GO