[dbo].[MobileUserLogPullHistory]
CREATE TABLE [dbo].[MobileUserLogPullHistory]
(
[MobileUserLogPullHistoryID] [int] NOT NULL,
[LastDatePulled] [datetime] NOT NULL,
[NextDateCanPull] [datetime] NOT NULL,
[LastPulledBy] [int] NOT NULL,
[RecordsPulled] [int] NOT NULL,
[TimesPulled] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileUserLogPullHistory] ADD CONSTRAINT [CK_MobileUserLogPullHistoryID] CHECK (([MobileUserLogPullHistoryID]=(1)))
GO
ALTER TABLE [dbo].[MobileUserLogPullHistory] ADD CONSTRAINT [PK_MobileUserLogPullHistory] PRIMARY KEY NONCLUSTERED ([MobileUserLogPullHistoryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileUserLogPullHistory] ADD CONSTRAINT [FK_MobileUserLogPullHistory_Sysuser] FOREIGN KEY ([LastPulledBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[MobileUserLogPullHistory] TO [MssExec]
GRANT INSERT ON [dbo].[MobileUserLogPullHistory] TO [MssExec]
GRANT DELETE ON [dbo].[MobileUserLogPullHistory] TO [MssExec]
GRANT UPDATE ON [dbo].[MobileUserLogPullHistory] TO [MssExec]
GO