ubuntu593 commited on
Commit
4eaa7c7
·
1 Parent(s): 34b79a9

Upload DriveCheck SQL database dump

Browse files
Files changed (2) hide show
  1. README.md +33 -281
  2. drivecheck_blank.sql +281 -0
README.md CHANGED
@@ -1,281 +1,33 @@
1
- -- phpMyAdmin SQL Dump
2
- -- version 5.2.3
3
- -- https://www.phpmyadmin.net/
4
- --
5
- -- Host: 127.0.0.1:3306
6
- -- Generation Time: Jul 17, 2026 at 02:36 PM
7
- -- Server version: 8.4.7
8
- -- PHP Version: 8.3.28
9
-
10
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
- START TRANSACTION;
12
- SET time_zone = "+00:00";
13
-
14
-
15
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18
- /*!40101 SET NAMES utf8mb4 */;
19
-
20
- --
21
- -- Database: `drivecheck`
22
- --
23
-
24
- -- --------------------------------------------------------
25
-
26
- --
27
- -- Table structure for table `cache`
28
- --
29
-
30
- DROP TABLE IF EXISTS `cache`;
31
- CREATE TABLE IF NOT EXISTS `cache` (
32
- `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
33
- `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
34
- `expiration` bigint NOT NULL,
35
- PRIMARY KEY (`key`),
36
- KEY `cache_expiration_index` (`expiration`)
37
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
38
-
39
- -- --------------------------------------------------------
40
-
41
- --
42
- -- Table structure for table `cache_locks`
43
- --
44
-
45
- DROP TABLE IF EXISTS `cache_locks`;
46
- CREATE TABLE IF NOT EXISTS `cache_locks` (
47
- `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
48
- `owner` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
49
- `expiration` bigint NOT NULL,
50
- PRIMARY KEY (`key`),
51
- KEY `cache_locks_expiration_index` (`expiration`)
52
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
53
-
54
- -- --------------------------------------------------------
55
-
56
- --
57
- -- Table structure for table `checking_points`
58
- --
59
-
60
- DROP TABLE IF EXISTS `checking_points`;
61
- CREATE TABLE IF NOT EXISTS `checking_points` (
62
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
63
- `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
64
- `incharge_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
65
- `police_station` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
66
- `created_at` timestamp NULL DEFAULT NULL,
67
- `updated_at` timestamp NULL DEFAULT NULL,
68
- PRIMARY KEY (`id`)
69
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
70
-
71
- -- --------------------------------------------------------
72
-
73
- --
74
- -- Table structure for table `failed_jobs`
75
- --
76
-
77
- DROP TABLE IF EXISTS `failed_jobs`;
78
- CREATE TABLE IF NOT EXISTS `failed_jobs` (
79
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
80
- `uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
81
- `connection` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
82
- `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
83
- `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
84
- `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
85
- `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
86
- PRIMARY KEY (`id`),
87
- UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
88
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
89
-
90
- -- --------------------------------------------------------
91
-
92
- --
93
- -- Table structure for table `jobs`
94
- --
95
-
96
- DROP TABLE IF EXISTS `jobs`;
97
- CREATE TABLE IF NOT EXISTS `jobs` (
98
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
99
- `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
100
- `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
101
- `attempts` smallint UNSIGNED NOT NULL,
102
- `reserved_at` int UNSIGNED DEFAULT NULL,
103
- `available_at` int UNSIGNED NOT NULL,
104
- `created_at` int UNSIGNED NOT NULL,
105
- PRIMARY KEY (`id`),
106
- KEY `jobs_queue_index` (`queue`)
107
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
108
-
109
- -- --------------------------------------------------------
110
-
111
- --
112
- -- Table structure for table `job_batches`
113
- --
114
-
115
- DROP TABLE IF EXISTS `job_batches`;
116
- CREATE TABLE IF NOT EXISTS `job_batches` (
117
- `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
118
- `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
119
- `total_jobs` int NOT NULL,
120
- `pending_jobs` int NOT NULL,
121
- `failed_jobs` int NOT NULL,
122
- `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
123
- `options` mediumtext COLLATE utf8mb4_unicode_ci,
124
- `cancelled_at` int DEFAULT NULL,
125
- `created_at` int NOT NULL,
126
- `finished_at` int DEFAULT NULL,
127
- PRIMARY KEY (`id`)
128
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
129
-
130
- -- --------------------------------------------------------
131
-
132
- --
133
- -- Table structure for table `migrations`
134
- --
135
-
136
- DROP TABLE IF EXISTS `migrations`;
137
- CREATE TABLE IF NOT EXISTS `migrations` (
138
- `id` int UNSIGNED NOT NULL AUTO_INCREMENT,
139
- `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
140
- `batch` int NOT NULL,
141
- PRIMARY KEY (`id`)
142
- ) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
143
-
144
- --
145
- -- Dumping data for table `migrations`
146
- --
147
-
148
- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
149
- (16, '0000_00_00_000000_create_user_types_table', 1),
150
- (17, '0001_01_01_000000_create_users_table', 1),
151
- (18, '0001_01_01_000001_create_cache_table', 1),
152
- (19, '0001_01_01_000002_create_jobs_table', 1),
153
- (20, '2026_07_06_081532_add_profile_fields_to_users_table', 2),
154
- (21, '2026_07_06_091431_create_checking_points_table', 3),
155
- (22, '2026_07_06_091431_create_vehicle_checks_table', 3),
156
- (23, '2026_07_09_185222_add_police_station_to_checking_points_table', 4),
157
- (24, '2026_07_09_191759_alter_shift_type_in_vehicle_checks_table', 5),
158
- (25, '2026_07_09_200406_add_duty_time_to_users_table', 6),
159
- (26, '2026_07_14_023805_change_duty_time_to_start_end_in_users_table', 7),
160
- (27, '2026_07_17_112549_add_incharge_name_to_checking_points_table', 8),
161
- (28, '2026_07_17_114758_add_roster_name_to_users_table', 9);
162
-
163
- -- --------------------------------------------------------
164
-
165
- --
166
- -- Table structure for table `password_reset_tokens`
167
- --
168
-
169
- DROP TABLE IF EXISTS `password_reset_tokens`;
170
- CREATE TABLE IF NOT EXISTS `password_reset_tokens` (
171
- `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
172
- `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
173
- `created_at` timestamp NULL DEFAULT NULL,
174
- PRIMARY KEY (`email`)
175
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
176
-
177
- -- --------------------------------------------------------
178
-
179
- --
180
- -- Table structure for table `sessions`
181
- --
182
-
183
- DROP TABLE IF EXISTS `sessions`;
184
- CREATE TABLE IF NOT EXISTS `sessions` (
185
- `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
186
- `user_id` bigint UNSIGNED DEFAULT NULL,
187
- `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
188
- `user_agent` text COLLATE utf8mb4_unicode_ci,
189
- `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
190
- `last_activity` int NOT NULL,
191
- PRIMARY KEY (`id`),
192
- KEY `sessions_user_id_index` (`user_id`),
193
- KEY `sessions_last_activity_index` (`last_activity`)
194
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
195
-
196
- -- --------------------------------------------------------
197
-
198
- --
199
- -- Table structure for table `users`
200
- --
201
-
202
- DROP TABLE IF EXISTS `users`;
203
- CREATE TABLE IF NOT EXISTS `users` (
204
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
205
- `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
206
- `roster_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
207
- `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
208
- `profile_photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
209
- `dob` date DEFAULT NULL,
210
- `email_verified_at` timestamp NULL DEFAULT NULL,
211
- `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
212
- `user_type_id` bigint UNSIGNED NOT NULL DEFAULT '2',
213
- `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
214
- `policestation` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
215
- `mobile_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
216
- `is_active` tinyint(1) NOT NULL DEFAULT '0',
217
- `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
218
- `created_at` timestamp NULL DEFAULT NULL,
219
- `updated_at` timestamp NULL DEFAULT NULL,
220
- `assigned_shift` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
221
- `assigned_checking_point_id` bigint UNSIGNED DEFAULT NULL,
222
- `duty_start_time` time DEFAULT NULL,
223
- `duty_end_time` time DEFAULT NULL,
224
- PRIMARY KEY (`id`),
225
- UNIQUE KEY `users_email_unique` (`email`),
226
- KEY `users_user_type_id_foreign` (`user_type_id`)
227
- ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
228
-
229
- -- --------------------------------------------------------
230
-
231
- --
232
- -- Table structure for table `user_types`
233
- --
234
-
235
- DROP TABLE IF EXISTS `user_types`;
236
- CREATE TABLE IF NOT EXISTS `user_types` (
237
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
238
- `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
239
- `created_at` timestamp NULL DEFAULT NULL,
240
- `updated_at` timestamp NULL DEFAULT NULL,
241
- PRIMARY KEY (`id`)
242
- ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
243
-
244
- --
245
- -- Dumping data for table `user_types`
246
- --
247
-
248
- INSERT INTO `user_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
249
- (1, 'Admin', '2026-07-04 07:44:47', '2026-07-04 07:44:47'),
250
- (2, 'Employee', '2026-07-04 07:44:47', '2026-07-04 07:44:47');
251
-
252
- -- --------------------------------------------------------
253
-
254
- --
255
- -- Table structure for table `vehicle_checks`
256
- --
257
-
258
- DROP TABLE IF EXISTS `vehicle_checks`;
259
- CREATE TABLE IF NOT EXISTS `vehicle_checks` (
260
- `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
261
- `user_id` bigint UNSIGNED NOT NULL,
262
- `checking_point_id` bigint UNSIGNED NOT NULL,
263
- `person_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
264
- `shift_date` date NOT NULL,
265
- `shift_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
266
- `vehicle_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
267
- `employee_id_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
268
- `vehicle_photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
269
- `checking_time` time NOT NULL,
270
- `remark` text COLLATE utf8mb4_unicode_ci,
271
- `created_at` timestamp NULL DEFAULT NULL,
272
- `updated_at` timestamp NULL DEFAULT NULL,
273
- PRIMARY KEY (`id`),
274
- KEY `vehicle_checks_user_id_foreign` (`user_id`),
275
- KEY `vehicle_checks_checking_point_id_foreign` (`checking_point_id`)
276
- ) ENGINE=MyISAM AUTO_INCREMENT=277 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
277
- COMMIT;
278
-
279
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
280
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
281
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-classification
5
+ tags:
6
+ - database
7
+ - sql
8
+ - mysql
9
+ - drivecheck
10
+ - hrms
11
+ pretty_name: DriveCheck SQL Database Dump
12
+ ---
13
+
14
+ # DriveCheck Database Schema & Data Dump
15
+
16
+ This dataset repository contains the MySQL database dump (`drivecheck_blank.sql`) for the **DriveCheck HRMS** (Human Resource Management System & Police Checking Point Roster System).
17
+
18
+ ## Contents
19
+
20
+ - `drivecheck_blank.sql`: MySQL relational database backup file containing schema definitions and initial seed tables for:
21
+ - `users` (Admin & Employee details, Duty Roster schedules, Police Station assignments)
22
+ - `user_types` (Role-based authorization mappings: Admin, Employee)
23
+ - `checking_points` (Locations, Incharge details, Police station divisions)
24
+ - `vehicle_checks` (Inspection records, vehicle numbers, shift entries)
25
+ - `migrations`, `sessions`, `jobs`, `cache`
26
+
27
+ ## Usage Instructions
28
+
29
+ To import this database into your MySQL server:
30
+
31
+ ```bash
32
+ mysql -u root -p drivecheck < drivecheck_blank.sql
33
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
drivecheck_blank.sql ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- phpMyAdmin SQL Dump
2
+ -- version 5.2.3
3
+ -- https://www.phpmyadmin.net/
4
+ --
5
+ -- Host: 127.0.0.1:3306
6
+ -- Generation Time: Jul 17, 2026 at 02:36 PM
7
+ -- Server version: 8.4.7
8
+ -- PHP Version: 8.3.28
9
+
10
+ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
+ START TRANSACTION;
12
+ SET time_zone = "+00:00";
13
+
14
+
15
+ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
16
+ /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
17
+ /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
18
+ /*!40101 SET NAMES utf8mb4 */;
19
+
20
+ --
21
+ -- Database: `drivecheck`
22
+ --
23
+
24
+ -- --------------------------------------------------------
25
+
26
+ --
27
+ -- Table structure for table `cache`
28
+ --
29
+
30
+ DROP TABLE IF EXISTS `cache`;
31
+ CREATE TABLE IF NOT EXISTS `cache` (
32
+ `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
33
+ `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
34
+ `expiration` bigint NOT NULL,
35
+ PRIMARY KEY (`key`),
36
+ KEY `cache_expiration_index` (`expiration`)
37
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
38
+
39
+ -- --------------------------------------------------------
40
+
41
+ --
42
+ -- Table structure for table `cache_locks`
43
+ --
44
+
45
+ DROP TABLE IF EXISTS `cache_locks`;
46
+ CREATE TABLE IF NOT EXISTS `cache_locks` (
47
+ `key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
48
+ `owner` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
49
+ `expiration` bigint NOT NULL,
50
+ PRIMARY KEY (`key`),
51
+ KEY `cache_locks_expiration_index` (`expiration`)
52
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
53
+
54
+ -- --------------------------------------------------------
55
+
56
+ --
57
+ -- Table structure for table `checking_points`
58
+ --
59
+
60
+ DROP TABLE IF EXISTS `checking_points`;
61
+ CREATE TABLE IF NOT EXISTS `checking_points` (
62
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
63
+ `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
64
+ `incharge_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
65
+ `police_station` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
66
+ `created_at` timestamp NULL DEFAULT NULL,
67
+ `updated_at` timestamp NULL DEFAULT NULL,
68
+ PRIMARY KEY (`id`)
69
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
70
+
71
+ -- --------------------------------------------------------
72
+
73
+ --
74
+ -- Table structure for table `failed_jobs`
75
+ --
76
+
77
+ DROP TABLE IF EXISTS `failed_jobs`;
78
+ CREATE TABLE IF NOT EXISTS `failed_jobs` (
79
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
80
+ `uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
81
+ `connection` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
82
+ `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
83
+ `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
84
+ `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
85
+ `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
86
+ PRIMARY KEY (`id`),
87
+ UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
88
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
89
+
90
+ -- --------------------------------------------------------
91
+
92
+ --
93
+ -- Table structure for table `jobs`
94
+ --
95
+
96
+ DROP TABLE IF EXISTS `jobs`;
97
+ CREATE TABLE IF NOT EXISTS `jobs` (
98
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
99
+ `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
100
+ `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
101
+ `attempts` smallint UNSIGNED NOT NULL,
102
+ `reserved_at` int UNSIGNED DEFAULT NULL,
103
+ `available_at` int UNSIGNED NOT NULL,
104
+ `created_at` int UNSIGNED NOT NULL,
105
+ PRIMARY KEY (`id`),
106
+ KEY `jobs_queue_index` (`queue`)
107
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
108
+
109
+ -- --------------------------------------------------------
110
+
111
+ --
112
+ -- Table structure for table `job_batches`
113
+ --
114
+
115
+ DROP TABLE IF EXISTS `job_batches`;
116
+ CREATE TABLE IF NOT EXISTS `job_batches` (
117
+ `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
118
+ `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
119
+ `total_jobs` int NOT NULL,
120
+ `pending_jobs` int NOT NULL,
121
+ `failed_jobs` int NOT NULL,
122
+ `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
123
+ `options` mediumtext COLLATE utf8mb4_unicode_ci,
124
+ `cancelled_at` int DEFAULT NULL,
125
+ `created_at` int NOT NULL,
126
+ `finished_at` int DEFAULT NULL,
127
+ PRIMARY KEY (`id`)
128
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
129
+
130
+ -- --------------------------------------------------------
131
+
132
+ --
133
+ -- Table structure for table `migrations`
134
+ --
135
+
136
+ DROP TABLE IF EXISTS `migrations`;
137
+ CREATE TABLE IF NOT EXISTS `migrations` (
138
+ `id` int UNSIGNED NOT NULL AUTO_INCREMENT,
139
+ `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
140
+ `batch` int NOT NULL,
141
+ PRIMARY KEY (`id`)
142
+ ) ENGINE=MyISAM AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
143
+
144
+ --
145
+ -- Dumping data for table `migrations`
146
+ --
147
+
148
+ INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
149
+ (16, '0000_00_00_000000_create_user_types_table', 1),
150
+ (17, '0001_01_01_000000_create_users_table', 1),
151
+ (18, '0001_01_01_000001_create_cache_table', 1),
152
+ (19, '0001_01_01_000002_create_jobs_table', 1),
153
+ (20, '2026_07_06_081532_add_profile_fields_to_users_table', 2),
154
+ (21, '2026_07_06_091431_create_checking_points_table', 3),
155
+ (22, '2026_07_06_091431_create_vehicle_checks_table', 3),
156
+ (23, '2026_07_09_185222_add_police_station_to_checking_points_table', 4),
157
+ (24, '2026_07_09_191759_alter_shift_type_in_vehicle_checks_table', 5),
158
+ (25, '2026_07_09_200406_add_duty_time_to_users_table', 6),
159
+ (26, '2026_07_14_023805_change_duty_time_to_start_end_in_users_table', 7),
160
+ (27, '2026_07_17_112549_add_incharge_name_to_checking_points_table', 8),
161
+ (28, '2026_07_17_114758_add_roster_name_to_users_table', 9);
162
+
163
+ -- --------------------------------------------------------
164
+
165
+ --
166
+ -- Table structure for table `password_reset_tokens`
167
+ --
168
+
169
+ DROP TABLE IF EXISTS `password_reset_tokens`;
170
+ CREATE TABLE IF NOT EXISTS `password_reset_tokens` (
171
+ `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
172
+ `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
173
+ `created_at` timestamp NULL DEFAULT NULL,
174
+ PRIMARY KEY (`email`)
175
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
176
+
177
+ -- --------------------------------------------------------
178
+
179
+ --
180
+ -- Table structure for table `sessions`
181
+ --
182
+
183
+ DROP TABLE IF EXISTS `sessions`;
184
+ CREATE TABLE IF NOT EXISTS `sessions` (
185
+ `id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
186
+ `user_id` bigint UNSIGNED DEFAULT NULL,
187
+ `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
188
+ `user_agent` text COLLATE utf8mb4_unicode_ci,
189
+ `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
190
+ `last_activity` int NOT NULL,
191
+ PRIMARY KEY (`id`),
192
+ KEY `sessions_user_id_index` (`user_id`),
193
+ KEY `sessions_last_activity_index` (`last_activity`)
194
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
195
+
196
+ -- --------------------------------------------------------
197
+
198
+ --
199
+ -- Table structure for table `users`
200
+ --
201
+
202
+ DROP TABLE IF EXISTS `users`;
203
+ CREATE TABLE IF NOT EXISTS `users` (
204
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
205
+ `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
206
+ `roster_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
207
+ `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
208
+ `profile_photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
209
+ `dob` date DEFAULT NULL,
210
+ `email_verified_at` timestamp NULL DEFAULT NULL,
211
+ `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
212
+ `user_type_id` bigint UNSIGNED NOT NULL DEFAULT '2',
213
+ `employee_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
214
+ `policestation` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
215
+ `mobile_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
216
+ `is_active` tinyint(1) NOT NULL DEFAULT '0',
217
+ `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
218
+ `created_at` timestamp NULL DEFAULT NULL,
219
+ `updated_at` timestamp NULL DEFAULT NULL,
220
+ `assigned_shift` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
221
+ `assigned_checking_point_id` bigint UNSIGNED DEFAULT NULL,
222
+ `duty_start_time` time DEFAULT NULL,
223
+ `duty_end_time` time DEFAULT NULL,
224
+ PRIMARY KEY (`id`),
225
+ UNIQUE KEY `users_email_unique` (`email`),
226
+ KEY `users_user_type_id_foreign` (`user_type_id`)
227
+ ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
228
+
229
+ -- --------------------------------------------------------
230
+
231
+ --
232
+ -- Table structure for table `user_types`
233
+ --
234
+
235
+ DROP TABLE IF EXISTS `user_types`;
236
+ CREATE TABLE IF NOT EXISTS `user_types` (
237
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
238
+ `type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
239
+ `created_at` timestamp NULL DEFAULT NULL,
240
+ `updated_at` timestamp NULL DEFAULT NULL,
241
+ PRIMARY KEY (`id`)
242
+ ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
243
+
244
+ --
245
+ -- Dumping data for table `user_types`
246
+ --
247
+
248
+ INSERT INTO `user_types` (`id`, `type`, `created_at`, `updated_at`) VALUES
249
+ (1, 'Admin', '2026-07-04 07:44:47', '2026-07-04 07:44:47'),
250
+ (2, 'Employee', '2026-07-04 07:44:47', '2026-07-04 07:44:47');
251
+
252
+ -- --------------------------------------------------------
253
+
254
+ --
255
+ -- Table structure for table `vehicle_checks`
256
+ --
257
+
258
+ DROP TABLE IF EXISTS `vehicle_checks`;
259
+ CREATE TABLE IF NOT EXISTS `vehicle_checks` (
260
+ `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT,
261
+ `user_id` bigint UNSIGNED NOT NULL,
262
+ `checking_point_id` bigint UNSIGNED NOT NULL,
263
+ `person_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
264
+ `shift_date` date NOT NULL,
265
+ `shift_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
266
+ `vehicle_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
267
+ `employee_id_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
268
+ `vehicle_photo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
269
+ `checking_time` time NOT NULL,
270
+ `remark` text COLLATE utf8mb4_unicode_ci,
271
+ `created_at` timestamp NULL DEFAULT NULL,
272
+ `updated_at` timestamp NULL DEFAULT NULL,
273
+ PRIMARY KEY (`id`),
274
+ KEY `vehicle_checks_user_id_foreign` (`user_id`),
275
+ KEY `vehicle_checks_checking_point_id_foreign` (`checking_point_id`)
276
+ ) ENGINE=MyISAM AUTO_INCREMENT=277 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
277
+ COMMIT;
278
+
279
+ /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
280
+ /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
281
+ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;