Commit Graph
2 Commits
Author SHA1 Message Date
hamed 28dbfa67e2 Add seed script for populating database with initial data
- Implemented a comprehensive PHP script to seed the database with test data for users, doctors, clinics, appointments, payments, ratings, comments, and blogs.
- Included functions for generating random data such as UUIDs, mobile numbers, and images.
- Downloaded and stored images for doctors and clinics using parallel curl requests.
- Inserted static data for insurances, patients, and doctors with various attributes including specialties and services.
- Ensured data integrity by disabling foreign key checks during the seeding process and re-enabling them afterward.
- Provided a summary of the total records inserted into each table at the end of the script.
2026-06-10 15:06:37 +03:30
hamed ee1633a9d0 feat(data-import): Add data import script for provinces, cities, specialties, and doctor services
- Implemented a PHP script to import data from JSON files into the database.
- Added functionality to truncate and clear existing data in relevant tables.
- Inserted provinces, cities, specialties (including parent-child relationships), and doctor services from JSON files.
- Updated foreign key checks and reset AUTO_INCREMENT values for relevant tables.
- Added JSON files for provinces, cities, and specialties.

chore(migrations): Update cities table to allow longtext for keywords

- Modified the `keywords` column in the `cities` table to change its type from VARCHAR(255) to LONGTEXT.
2026-06-10 14:32:00 +03:30