[dbo].[XmlSystemTimeclock]
CREATE TABLE [dbo].[XmlSystemTimeclock]
(
[XmlSystemTimeclockId] [int] NOT NULL IDENTITY(1, 1),
[Timeclock] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[XmlSystemFid] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemTimeclock] ADD CONSTRAINT [PK_XmlSystemTimeclock] PRIMARY KEY CLUSTERED ([XmlSystemTimeclockId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemTimeclock] ADD CONSTRAINT [IX_XmlSystemTimeclock_Timeclock] UNIQUE NONCLUSTERED ([Timeclock]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_XmlSystemTimeclock_XmlSystemFid] ON [dbo].[XmlSystemTimeclock] ([XmlSystemFid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlSystemTimeclock] ADD CONSTRAINT [FK_XmlSystemTimeclock_XmlSystem] FOREIGN KEY ([XmlSystemFid]) REFERENCES [dbo].[XmlSystem] ([XmlSystemID])
GO
GRANT SELECT ON [dbo].[XmlSystemTimeclock] TO [MssExec]
GRANT INSERT ON [dbo].[XmlSystemTimeclock] TO [MssExec]
GRANT DELETE ON [dbo].[XmlSystemTimeclock] TO [MssExec]
GRANT UPDATE ON [dbo].[XmlSystemTimeclock] TO [MssExec]
GO