INSERT INTO teamhdr (nFranchiseeId, nUserId, isLeader, isActive, dModifiedDate, dCreatedDate) VALUES ('2', '513', '1', '1', '2026-02-13 18:40:53', '2026-02-13 18:40:53') - 2026-02-13 18:40:53
INSERT INTO teamdtl (nFranchiseeId, nTeamhdrId, nUserId, isActive, isLeader, dModifiedDate, dCreatedDate) VALUES ('2', '12104', '514', '1', '0', '2026-02-13 18:40:53', '2026-02-13 18:40:53') - 2026-02-13 18:40:53
INSERT INTO teamdtl (nFranchiseeId, nTeamhdrId, nUserId, isActive, isLeader, dModifiedDate, dCreatedDate) VALUES ('2', '12104', '513', '1', '1', '2026-02-13 18:40:53', '2026-02-13 18:40:53') - 2026-02-13 18:40:53
INSERT INTO worktrackingmst (nFranchiseeId, nUserId, tracking_data, created_at, updated_at) VALUES ('2', '513', '[]', '2026-02-13 18:40:54', '2026-02-13 18:40:54') - 2026-02-13 18:40:54
INSERT INTO workhistory (nFranchiseeId, nUserId, nTeamId, tStartTime, nTotalDistance, nTrackId, dModifiedDate, dCreatedDate) VALUES ('2', '513', '12104', '2026-02-13 18:40:54', '0', '812', '2026-02-13 18:40:54', '2026-02-13 18:40:54') - 2026-02-13 18:40:54
UPDATE usermst SET dTripDistance = '0' WHERE id = '513' - 2026-02-13 18:40:54
UPDATE usermst SET dLat = '37.583599', dLng = '-77.5012019', dTripDistance = '0.0' WHERE id = '513' - 2026-02-13 18:40:54
UPDATE worktrackingmst SET tracking_data = '[{"lat":37.58359899999999953479346004314720630645751953125,"lng":-77.5012018999999980906068230979144573211669921875}]', updated_at = '2026-02-13 18:40:54' WHERE id = '812' - 2026-02-13 18:40:54
INSERT INTO workhdr (nFranchiseeId, team_mates, nUserId, nCustId, nTeamId, nNumberOfEmployee, dWorkDate, tInTime, dLat, dLng, isActive, nStatus, dModifiedDate, dCreatedDate) VALUES ('2', '514,513', '513', '2493', '12104', '2', '2026-02-13 18:42:02', '2026-02-13 18:42:02', '37.58373', '-77.50188', '1', '10', '2026-02-13 18:42:02', '2026-02-13 18:42:02') - 2026-02-13 18:42:02
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:43:41', '2026-02-13 18:43:41') - 2026-02-13 18:43:41
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:45:13', '2026-02-13 18:45:13') - 2026-02-13 18:45:13
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:46:01', '2026-02-13 18:46:01') - 2026-02-13 18:46:01
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:46:10', '2026-02-13 18:46:10') - 2026-02-13 18:46:10
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:47:04', '2026-02-13 18:47:04') - 2026-02-13 18:47:04
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:47:12', '2026-02-13 18:47:12') - 2026-02-13 18:47:12
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:47:19', '2026-02-13 18:47:19') - 2026-02-13 18:47:19
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:47:26', '2026-02-13 18:47:26') - 2026-02-13 18:47:25
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', 'Tried to start work away from customer home', '37.58555', '-77.50273', '1', '0', '2026-02-13 18:47:36', '2026-02-13 18:47:36') - 2026-02-13 18:47:35
UPDATE usermst SET dTripDistance = '0' WHERE id = '513' - 2026-02-13 18:47:48
UPDATE workhistory SET nTotalDistance = '0', isReachedOffice = '0' WHERE id = '12366' - 2026-02-13 18:47:48
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:50:27', '2026-02-13 18:50:27') - 2026-02-13 18:50:26
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:50:34', '2026-02-13 18:50:34') - 2026-02-13 18:50:34
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:50:38', '2026-02-13 18:50:38') - 2026-02-13 18:50:38
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:50:49', '2026-02-13 18:50:49') - 2026-02-13 18:50:49
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:50:54', '2026-02-13 18:50:54') - 2026-02-13 18:50:54
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:51:10', '2026-02-13 18:51:10') - 2026-02-13 18:51:10
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:51:17', '2026-02-13 18:51:17') - 2026-02-13 18:51:17
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:51:24', '2026-02-13 18:51:24') - 2026-02-13 18:51:24
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:24', '2026-02-13 18:52:24') - 2026-02-13 18:52:23
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:30', '2026-02-13 18:52:30') - 2026-02-13 18:52:30
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:37', '2026-02-13 18:52:37') - 2026-02-13 18:52:37
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:43', '2026-02-13 18:52:43') - 2026-02-13 18:52:43
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:46', '2026-02-13 18:52:46') - 2026-02-13 18:52:46
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:52:48', '2026-02-13 18:52:48') - 2026-02-13 18:52:48
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:53:07', '2026-02-13 18:53:07') - 2026-02-13 18:53:07
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:53:27', '2026-02-13 18:53:27') - 2026-02-13 18:53:27
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:53:44', '2026-02-13 18:53:44') - 2026-02-13 18:53:44
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, nWorkhdrId, vMessage, lat, lng, isActive, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '513', '2493', '20905', 'Tried to stop work away from customer home', '37.583599', '-77.5012019', '1', '0', '2026-02-13 18:54:39', '2026-02-13 18:54:39') - 2026-02-13 18:54:39
UPDATE workhistory SET nOfficeId = '0', tEndTime = '2026-02-13 18:54:52', nTotalDistance = '0', isReachedOffice = '1' WHERE id = '12366' - 2026-02-13 18:54:52
UPDATE usermst SET dLat = NULL, dLng = NULL, dTripDistance = '0' WHERE id = '513' - 2026-02-13 18:54:52
