ManagementSystem/BACKEND/database/migrations
Your Name 0f2d5db8a3 feature(office-support): add equipment management and electricity bill attachment
Equipment management (new):
- Equipment CRUD with code, name, note, optional photo (max 10MB)
- Barcode scanner using @zxing/browser:
  - Defaults to back camera on mobile, autofocus + 2x zoom
  - Reads any orientation (rotates 12 angles per cycle for arbitrary tilt)
  - Manual "Capture & decode" fallback (18 angles)
  - Horizontal aiming line + haptic feedback on success
- Assign workflow with full history (user <-> warehouse, every state recorded)
- Statistics view: equipments grouped by current holder (Accordion + KPIs)
- Image lightbox: view original at any zoom, open-in-new-tab, pinch-zoom on mobile
- Client-side resize for >10MB uploads to fit PHP upload limit

Electricity bill:
- Attachment (PDF/image) upload, view, replace, remove

Routes, API endpoints, Mantine tab integration, and DB migrations included.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 14:36:42 +07:00
..
2014_10_12_000000_create_users_table.php update 2024-05-29 10:40:59 +07:00
2014_10_12_100000_create_password_reset_tokens_table.php sdfsd 2024-05-14 07:11:04 +00:00
2014_10_12_100000_create_password_resets_table.php sdfsd 2024-05-14 07:11:04 +00:00
2024_05_13_062432_create_tracking_table.php sdfsd 2024-05-14 07:11:04 +00:00
2024_06_07_040229_add_image_column_to_tracking_table.php update timekeeping 2024-06-07 13:13:45 +07:00
2024_07_01_082531_create_monthly_timekeeping_table.php update working days type 2024-07-01 10:59:56 +07:00
2024_08_02_025714_create_categories_table.php Update 2024_08_02_025714_create_categories_table.php 2024-08-06 16:48:18 +07:00
2024_08_05_050728_create_notes_table.php Bổ sung migrate bảng ngày nghỉ 2024-08-06 08:34:22 +07:00
2024_08_06_013033_create_leave_days_table.php [Ngày Phép] Cập nhật lại tên cột cho bảng ngày nghỉ phép năm 2025-03-13 14:54:37 +07:00
2024_08_06_135632_create_tickets_table.php update migration 2024-08-08 13:36:30 +07:00
2024_08_08_133536_add_column_status_to_tickets_table.php update migration 2024-08-08 13:36:30 +07:00
2024_09_06_165915_add_qrcode_to_users_table.php update qrcode 2024-09-07 09:06:02 +07:00
2024_09_12_083022_create_sprint_table.php create migrate file 2024-09-12 08:49:31 +07:00
2024_09_12_083311_create_criterias_table.php update init data 2024-09-18 09:39:52 +07:00
2024_09_12_083532_create_sprints_criterias_table.php hiệu chỉnh lôi add test report 2024-09-18 16:18:30 +07:00
2024_09_12_083955_create_test_cases_for_sprint_table.php hiệu chỉnh lôi add test report 2024-09-18 16:18:30 +07:00
2024_09_12_084137_create_users_criterias_table.php fix isssue add data chức năng sprintReview 2024-09-18 17:03:27 +07:00
2024_09_13_105529_add_column_avatar_user_table.php update doing 2024-09-16 07:47:38 +07:00
2024_09_18_004518_add_user_email_to_users_criterias_table.php Bổ sung file migrations cho cột user_email 2024-09-18 07:46:19 +07:00
2024_09_19_084322_create_technicals_table.php bổ sung migrate 2024-09-19 15:46:47 +07:00
2024_09_19_084343_create_technicals_users_table.php bổ sung migrate 2024-09-19 15:46:47 +07:00
2025_02_06_100745_create_project_reviews.php Update 2025-02-06 13:16:07 +07:00
2025_03_11_104450_create_documents_table.php add BE, FE Document 2025-03-12 16:48:05 +07:00
2025_03_13_070714_rename_ld_day_to_ld_day_total_in_leave_days_table.php add confirm/refuse in ticket mail 2025-06-11 16:44:11 +07:00
2025_03_13_075133_add_ld_special_leave_day_to_leave_days_table.php [Ngày Phép] Bổ sung chức năng cập nhật ngày nghỉ cho ngày nghỉ đặt biệt (3 ngày nghỉ đám cưới) 2025-04-15 14:07:20 +07:00
2025_03_13_075235_rename_ld_date_additional_to_ld_additional_day_in_leave_days_table.php [Ngày Phép] Bổ sung chức năng cập nhật ngày nghỉ cho ngày nghỉ đặt biệt (3 ngày nghỉ đám cưới) 2025-04-15 14:07:20 +07:00
2025_03_13_083500_update_name_in_categories_table.php [Ngày Phép] Cập nhật loại phép nộp: WFH, Nghỉ phép năm, Nghỉ không lương 2025-03-13 15:41:43 +07:00
2025_03_27_131933_create_files_table.php update logic upload file 2025-03-27 17:05:32 +07:00
2025_05_07_023335_update_leave_categories.php Bổ sung xóa ngày phép 2025-05-07 11:33:52 +07:00
2025_05_07_024806_add_limit_leave_month_category.php Bổ sung xóa ngày phép 2025-05-07 11:33:52 +07:00
2025_05_07_024949_add_saturday_work_schedule_category.php Bổ sung xóa ngày phép 2025-05-07 11:33:52 +07:00
2025_05_07_062606_add_day_work_special_category.php Bổ sung xóa ngày phép 2025-05-07 13:28:14 +07:00
2025_05_07_092903_add_leave_categories.php Bổ sung xóa ngày phép 2025-05-07 11:33:52 +07:00
2025_06_20_050728_add_ticket_relation_notes_table.php update delete note, add update ticket 2025-06-21 11:11:02 +07:00
2025_06_23_098764_add_permanent_users_table.php handle onleave new user, adjust background jobs 2025-06-24 15:39:11 +07:00
2025_06_30_025714_add_onleave_permanent_temporary_categories_table.php adjust UI, add send mail when delete note/update refuse ticket 2025-06-30 14:58:06 +07:00
2025_08_05_098764_add_separated_users_table.php update handle for separated user 2025-08-05 15:14:50 +07:00
2026_04_29_000001_create_electricity_bills_table.php Add electricity bills module (API, model, PDF) 2026-04-29 13:44:34 +07:00
2026_05_14_000001_add_attachment_path_to_electricity_bills_table.php feature(office-support): add equipment management and electricity bill attachment 2026-05-14 14:36:42 +07:00
2026_05_14_000002_create_equipments_table.php feature(office-support): add equipment management and electricity bill attachment 2026-05-14 14:36:42 +07:00
2026_05_14_000003_add_image_to_equipments_table.php feature(office-support): add equipment management and electricity bill attachment 2026-05-14 14:36:42 +07:00