![Tables](../../Images/Table.gif)
[dbo].[MobileCrewTimeLastPunch]
CREATE TABLE [dbo].[MobileCrewTimeLastPunch]
(
[CrewMemberFID] [int] NOT NULL,
[MobileCrewTimeFID] [bigint] NULL,
[LastPunchTimeUtc] [datetime] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeLastPunch] ADD CONSTRAINT [PK_MobileCrewTimeLastPunch] PRIMARY KEY CLUSTERED ([CrewMemberFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileCrewTimeLastPunch] ADD CONSTRAINT [FK_MobileCrewTimeLastPunch_CrewMemberFID] FOREIGN KEY ([CrewMemberFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
ALTER TABLE [dbo].[MobileCrewTimeLastPunch] ADD CONSTRAINT [FK_MobileCrewTimeLastPunch_MobileCrewTimeFID] FOREIGN KEY ([MobileCrewTimeFID]) REFERENCES [dbo].[MobileCrewTime] ([MobileCrewTimeID])
GO
GRANT SELECT ON [dbo].[MobileCrewTimeLastPunch] TO [MssExec]
GRANT INSERT ON [dbo].[MobileCrewTimeLastPunch] TO [MssExec]
GRANT DELETE ON [dbo].[MobileCrewTimeLastPunch] TO [MssExec]
GRANT UPDATE ON [dbo].[MobileCrewTimeLastPunch] TO [MssExec]
GO