Refactor state data structure: replace string IDs with integers, add UUIDs, status, and weight attributes for each state

This commit is contained in:
hamed
2026-06-21 15:37:19 +03:30
parent e0d729dcf1
commit 2fc74a664e
4 changed files with 2160 additions and 2888 deletions
+720 -653
View File
File diff suppressed because it is too large Load Diff
+500 -1520
View File
File diff suppressed because it is too large Load Diff
+784 -652
View File
File diff suppressed because it is too large Load Diff
+156 -63
View File
@@ -1,126 +1,219 @@
[
{
"id": "1",
"name": "آذربایجان شرقی"
"id": 1,
"uuid": "7bfb3151-646b-11f1-84d7-f26ca1845824",
"name": "آذربایجان شرقی",
"status": 1,
"weight": 10
},
{
"id": "2",
"name": "آذربایجان غربی"
"id": 2,
"uuid": "7bfb33c9-646b-11f1-84d7-f26ca1845824",
"name": "آذربایجان غربی",
"status": 1,
"weight": 20
},
{
"id": "3",
"name": "اردبیل"
"id": 3,
"uuid": "7bfb35cc-646b-11f1-84d7-f26ca1845824",
"name": "اردبیل",
"status": 1,
"weight": 30
},
{
"id": "4",
"name": "اصفهان"
"id": 4,
"uuid": "7bfb37c2-646b-11f1-84d7-f26ca1845824",
"name": "اصفهان",
"status": 1,
"weight": 40
},
{
"id": "5",
"name": "البرز"
"id": 5,
"uuid": "7bfb3912-646b-11f1-84d7-f26ca1845824",
"name": "البرز",
"status": 1,
"weight": 50
},
{
"id": "6",
"name": "ایلام"
"id": 6,
"uuid": "7bfb3b56-646b-11f1-84d7-f26ca1845824",
"name": "ایلام",
"status": 1,
"weight": 60
},
{
"id": "7",
"name": "بوشهر"
"id": 7,
"uuid": "7bfb3d5d-646b-11f1-84d7-f26ca1845824",
"name": "بوشهر",
"status": 1,
"weight": 70
},
{
"id": "8",
"name": "تهران"
"id": 8,
"uuid": "7bfb3f37-646b-11f1-84d7-f26ca1845824",
"name": "تهران",
"status": 1,
"weight": 80
},
{
"id": "9",
"name": "چهارمحال و بختیاری"
"id": 9,
"uuid": "7bfb410e-646b-11f1-84d7-f26ca1845824",
"name": "چهارمحال و بختیاری",
"status": 1,
"weight": 90
},
{
"id": "10",
"name": "خراسان جنوبی"
"id": 10,
"uuid": "7bfb42e9-646b-11f1-84d7-f26ca1845824",
"name": "خراسان جنوبی",
"status": 1,
"weight": 100
},
{
"id": "11",
"name": "خراسان رضوی"
"id": 11,
"uuid": "7bfb44b7-646b-11f1-84d7-f26ca1845824",
"name": "خراسان رضوی",
"status": 1,
"weight": 110
},
{
"id": "12",
"name": "خراسان شمالی"
"id": 12,
"uuid": "7bfb46c7-646b-11f1-84d7-f26ca1845824",
"name": "خراسان شمالی",
"status": 1,
"weight": 120
},
{
"id": "13",
"name": "خوزستان"
"id": 13,
"uuid": "7bfb4897-646b-11f1-84d7-f26ca1845824",
"name": "خوزستان",
"status": 1,
"weight": 130
},
{
"id": "14",
"name": "زنجان"
"id": 14,
"uuid": "7bfb4a78-646b-11f1-84d7-f26ca1845824",
"name": "زنجان",
"status": 1,
"weight": 140
},
{
"id": "15",
"name": "سمنان"
"id": 15,
"uuid": "7bfb4c40-646b-11f1-84d7-f26ca1845824",
"name": "سمنان",
"status": 1,
"weight": 150
},
{
"id": "16",
"name": "سیستان و بلوچستان"
"id": 16,
"uuid": "7bfb4db6-646b-11f1-84d7-f26ca1845824",
"name": "سیستان و بلوچستان",
"status": 1,
"weight": 160
},
{
"id": "17",
"name": "فارس"
"id": 17,
"uuid": "7bfb4f39-646b-11f1-84d7-f26ca1845824",
"name": "فارس",
"status": 1,
"weight": 170
},
{
"id": "18",
"name": "قزوین"
"id": 18,
"uuid": "7bfb50da-646b-11f1-84d7-f26ca1845824",
"name": "قزوین",
"status": 1,
"weight": 180
},
{
"id": "19",
"name": "قم"
"id": 19,
"uuid": "7bfb5214-646b-11f1-84d7-f26ca1845824",
"name": "قم",
"status": 1,
"weight": 190
},
{
"id": "20",
"name": "کردستان"
"id": 20,
"uuid": "7bfb5347-646b-11f1-84d7-f26ca1845824",
"name": "کردستان",
"status": 1,
"weight": 200
},
{
"id": "21",
"name": "کرمان"
"id": 21,
"uuid": "7bfb54a5-646b-11f1-84d7-f26ca1845824",
"name": "کرمان",
"status": 1,
"weight": 210
},
{
"id": "22",
"name": "کرمانشاه"
"id": 22,
"uuid": "7bfb55d3-646b-11f1-84d7-f26ca1845824",
"name": "کرمانشاه",
"status": 1,
"weight": 220
},
{
"id": "23",
"name": "کهگیلویه و بویراحمد"
"id": 23,
"uuid": "7bfb5705-646b-11f1-84d7-f26ca1845824",
"name": "کهگیلویه و بویراحمد",
"status": 1,
"weight": 230
},
{
"id": "24",
"name": "گلستان"
"id": 24,
"uuid": "7bfb583a-646b-11f1-84d7-f26ca1845824",
"name": "گلستان",
"status": 1,
"weight": 240
},
{
"id": "25",
"name": "گیلان"
"id": 25,
"uuid": "7bfb5963-646b-11f1-84d7-f26ca1845824",
"name": "گیلان",
"status": 1,
"weight": 250
},
{
"id": "26",
"name": "لرستان"
"id": 26,
"uuid": "7bfb5a8e-646b-11f1-84d7-f26ca1845824",
"name": "لرستان",
"status": 1,
"weight": 260
},
{
"id": "27",
"name": "مازندران"
"id": 27,
"uuid": "7bfb5bca-646b-11f1-84d7-f26ca1845824",
"name": "مازندران",
"status": 1,
"weight": 270
},
{
"id": "28",
"name": "مرکزی"
"id": 28,
"uuid": "7bfb5cf2-646b-11f1-84d7-f26ca1845824",
"name": "مرکزی",
"status": 1,
"weight": 280
},
{
"id": "29",
"name": "هرمزگان"
"id": 29,
"uuid": "7bfb5e34-646b-11f1-84d7-f26ca1845824",
"name": "هرمزگان",
"status": 1,
"weight": 290
},
{
"id": "30",
"name": "همدان"
"id": 30,
"uuid": "7bfb5fff-646b-11f1-84d7-f26ca1845824",
"name": "همدان",
"status": 1,
"weight": 300
},
{
"id": "100",
"name": "یزد"
"id": 100,
"uuid": "7bfb61b0-646b-11f1-84d7-f26ca1845824",
"name": "یزد",
"status": 1,
"weight": 310
}
]
]