INSERT INTO teamhdr (nFranchiseeId, nUserId, isLeader, isActive, dModifiedDate, dCreatedDate) VALUES ('2', '434', '1', '1', '2026-01-13 09:48:04', '2026-01-13 09:48:04') - 2026-01-13 09:48:04
INSERT INTO teamdtl (nFranchiseeId, nTeamhdrId, nUserId, isActive, isLeader, dModifiedDate, dCreatedDate) VALUES ('2', '11973', '434', '1', '1', '2026-01-13 09:48:04', '2026-01-13 09:48:04') - 2026-01-13 09:48:04
INSERT INTO worktrackingmst (nFranchiseeId, nUserId, tracking_data, created_at, updated_at) VALUES ('2', '434', '[]', '2026-01-13 09:48:05', '2026-01-13 09:48:05') - 2026-01-13 09:48:05
INSERT INTO workhistory (nFranchiseeId, nUserId, nTeamId, tStartTime, nTotalDistance, nTrackId, dModifiedDate, dCreatedDate) VALUES ('2', '434', '11973', '2026-01-13 09:48:05', '0', '749', '2026-01-13 09:48:05', '2026-01-13 09:48:05') - 2026-01-13 09:48:05
UPDATE usermst SET dTripDistance = '0' WHERE id = '434' - 2026-01-13 09:48:05
UPDATE usermst SET dLat = '8.80652', dLng = '78.13495', dTripDistance = '1265234.125' WHERE id = '434' - 2026-01-13 09:48:16
UPDATE worktrackingmst SET tracking_data = '[{"lat":8.8065200000000007918288247310556471347808837890625,"lng":78.1349500000000034560798667371273040771484375}]', updated_at = '2026-01-13 09:48:16' WHERE id = '749' - 2026-01-13 09:48:16
INSERT INTO workhdr (nFranchiseeId, team_mates, nUserId, nCustId, nTeamId, nNumberOfEmployee, dWorkDate, tInTime, dLat, dLng, isActive, nStatus, dModifiedDate, dCreatedDate) VALUES ('2', '434', '434', '9', '11973', '1', '2026-01-13 09:48:20', '2026-01-13 09:48:20', '8.80654', '78.13495', '1', '10', '2026-01-13 09:48:20', '2026-01-13 09:48:20') - 2026-01-13 09:48:20
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, isActive, lat, lng, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '434', '9', 'Tried to start work away from customer home', '1', '8.80654', '78.13495', '0', '2026-01-13 09:48:26', '2026-01-13 09:48:26') - 2026-01-13 09:48:26
UPDATE workhistory SET nOfficeId = '0', tEndTime = '2026-01-13 09:48:36', nTotalDistance = '1265234.125', isReachedOffice = '1' WHERE id = '12227' - 2026-01-13 09:48:36
UPDATE usermst SET dLat = NULL, dLng = NULL, dTripDistance = '0' WHERE id = '434' - 2026-01-13 09:48:36
INSERT INTO teamhdr (nFranchiseeId, nUserId, isLeader, isActive, dModifiedDate, dCreatedDate) VALUES ('2', '434', '1', '1', '2026-01-13 12:29:22', '2026-01-13 12:29:22') - 2026-01-13 12:29:22
INSERT INTO teamdtl (nFranchiseeId, nTeamhdrId, nUserId, isActive, isLeader, dModifiedDate, dCreatedDate) VALUES ('2', '11974', '434', '1', '1', '2026-01-13 12:29:22', '2026-01-13 12:29:22') - 2026-01-13 12:29:22
INSERT INTO worktrackingmst (nFranchiseeId, nUserId, tracking_data, created_at, updated_at) VALUES ('2', '434', '[]', '2026-01-13 12:29:23', '2026-01-13 12:29:23') - 2026-01-13 12:29:23
INSERT INTO workhistory (nFranchiseeId, nUserId, nTeamId, tStartTime, nTotalDistance, nTrackId, dModifiedDate, dCreatedDate) VALUES ('2', '434', '11974', '2026-01-13 12:29:23', '0', '750', '2026-01-13 12:29:23', '2026-01-13 12:29:23') - 2026-01-13 12:29:23
UPDATE usermst SET dTripDistance = '0' WHERE id = '434' - 2026-01-13 12:29:23
UPDATE usermst SET dLat = '8.8065032', dLng = '78.1349484', dTripDistance = '0.0' WHERE id = '434' - 2026-01-13 12:29:23
UPDATE usermst SET dLat = '8.80652', dLng = '78.13495', dTripDistance = '0.0' WHERE id = '434' - 2026-01-13 12:29:36
INSERT INTO workhdr (nFranchiseeId, team_mates, nUserId, nCustId, nTeamId, nNumberOfEmployee, dWorkDate, tInTime, dLat, dLng, isActive, nStatus, dModifiedDate, dCreatedDate) VALUES ('2', '434', '434', '9', '11974', '1', '2026-01-13 12:29:53', '2026-01-13 12:29:53', '8.80653', '78.13494', '1', '10', '2026-01-13 12:29:53', '2026-01-13 12:29:53') - 2026-01-13 12:29:53
UPDATE usermst SET dLat = '8.80662', dLng = '78.13497', dTripDistance = '11.27678' WHERE id = '434' - 2026-01-13 12:29:59
INSERT INTO alertmst (nFranchiseeId, nUserId, nCustId, vMessage, isActive, lat, lng, isNotified, dModifiedDate, dCreatedDate) VALUES ('2', '434', '9', 'Tried to start work away from customer home', '1', '8.80664', '78.13497', '0', '2026-01-13 12:30:19', '2026-01-13 12:30:19') - 2026-01-13 12:30:19
UPDATE workhistory SET nOfficeId = '0', tEndTime = '2026-01-13 12:30:40', nTotalDistance = '11.27678', isReachedOffice = '1' WHERE id = '12228' - 2026-01-13 12:30:40
UPDATE usermst SET dLat = NULL, dLng = NULL, dTripDistance = '0' WHERE id = '434' - 2026-01-13 12:30:40
