Tables [dbo].[MobileCrewTimeLastPunch]
Properties
PropertyValue
Row Count (~)0
Created8:49:56 AM Friday, December 7, 2018
Last Modified8:49:57 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_MobileCrewTimeLastPunch: CrewMemberFIDForeign Keys FK_MobileCrewTimeLastPunch_CrewMemberFID: [dbo].[Sysuser].CrewMemberFIDCrewMemberFIDint4
No
Foreign Keys FK_MobileCrewTimeLastPunch_MobileCrewTimeFID: [dbo].[MobileCrewTime].MobileCrewTimeFIDMobileCrewTimeFIDbigint8
Yes
LastPunchTimeUtcdatetime8
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MobileCrewTimeLastPunch: CrewMemberFIDPK_MobileCrewTimeLastPunchCrewMemberFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_MobileCrewTimeLastPunch_CrewMemberFIDCrewMemberFID->[dbo].[Sysuser].[SysUserID]
FK_MobileCrewTimeLastPunch_MobileCrewTimeFIDMobileCrewTimeFID->[dbo].[MobileCrewTime].[MobileCrewTimeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
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
Uses