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.
This commit is contained in:
hamed
2026-06-10 14:32:00 +03:30
parent 5066fcbd91
commit ee1633a9d0
7 changed files with 3658 additions and 1 deletions
+126
View File
@@ -0,0 +1,126 @@
[
{
"id": "1",
"name": "آذربایجان شرقی"
},
{
"id": "2",
"name": "آذربایجان غربی"
},
{
"id": "3",
"name": "اردبیل"
},
{
"id": "4",
"name": "اصفهان"
},
{
"id": "5",
"name": "البرز"
},
{
"id": "6",
"name": "ایلام"
},
{
"id": "7",
"name": "بوشهر"
},
{
"id": "8",
"name": "تهران"
},
{
"id": "9",
"name": "چهارمحال و بختیاری"
},
{
"id": "10",
"name": "خراسان جنوبی"
},
{
"id": "11",
"name": "خراسان رضوی"
},
{
"id": "12",
"name": "خراسان شمالی"
},
{
"id": "13",
"name": "خوزستان"
},
{
"id": "14",
"name": "زنجان"
},
{
"id": "15",
"name": "سمنان"
},
{
"id": "16",
"name": "سیستان و بلوچستان"
},
{
"id": "17",
"name": "فارس"
},
{
"id": "18",
"name": "قزوین"
},
{
"id": "19",
"name": "قم"
},
{
"id": "20",
"name": "کردستان"
},
{
"id": "21",
"name": "کرمان"
},
{
"id": "22",
"name": "کرمانشاه"
},
{
"id": "23",
"name": "کهگیلویه و بویراحمد"
},
{
"id": "24",
"name": "گلستان"
},
{
"id": "25",
"name": "گیلان"
},
{
"id": "26",
"name": "لرستان"
},
{
"id": "27",
"name": "مازندران"
},
{
"id": "28",
"name": "مرکزی"
},
{
"id": "29",
"name": "هرمزگان"
},
{
"id": "30",
"name": "همدان"
},
{
"id": "100",
"name": "یزد"
}
]