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
+719 -652
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
+155 -62
View File
@@ -1,126 +1,219 @@
[ [
{ {
"id": "1", "id": 1,
"name": "آذربایجان شرقی" "uuid": "7bfb3151-646b-11f1-84d7-f26ca1845824",
"name": "آذربایجان شرقی",
"status": 1,
"weight": 10
}, },
{ {
"id": "2", "id": 2,
"name": "آذربایجان غربی" "uuid": "7bfb33c9-646b-11f1-84d7-f26ca1845824",
"name": "آذربایجان غربی",
"status": 1,
"weight": 20
}, },
{ {
"id": "3", "id": 3,
"name": "اردبیل" "uuid": "7bfb35cc-646b-11f1-84d7-f26ca1845824",
"name": "اردبیل",
"status": 1,
"weight": 30
}, },
{ {
"id": "4", "id": 4,
"name": "اصفهان" "uuid": "7bfb37c2-646b-11f1-84d7-f26ca1845824",
"name": "اصفهان",
"status": 1,
"weight": 40
}, },
{ {
"id": "5", "id": 5,
"name": "البرز" "uuid": "7bfb3912-646b-11f1-84d7-f26ca1845824",
"name": "البرز",
"status": 1,
"weight": 50
}, },
{ {
"id": "6", "id": 6,
"name": "ایلام" "uuid": "7bfb3b56-646b-11f1-84d7-f26ca1845824",
"name": "ایلام",
"status": 1,
"weight": 60
}, },
{ {
"id": "7", "id": 7,
"name": "بوشهر" "uuid": "7bfb3d5d-646b-11f1-84d7-f26ca1845824",
"name": "بوشهر",
"status": 1,
"weight": 70
}, },
{ {
"id": "8", "id": 8,
"name": "تهران" "uuid": "7bfb3f37-646b-11f1-84d7-f26ca1845824",
"name": "تهران",
"status": 1,
"weight": 80
}, },
{ {
"id": "9", "id": 9,
"name": "چهارمحال و بختیاری" "uuid": "7bfb410e-646b-11f1-84d7-f26ca1845824",
"name": "چهارمحال و بختیاری",
"status": 1,
"weight": 90
}, },
{ {
"id": "10", "id": 10,
"name": "خراسان جنوبی" "uuid": "7bfb42e9-646b-11f1-84d7-f26ca1845824",
"name": "خراسان جنوبی",
"status": 1,
"weight": 100
}, },
{ {
"id": "11", "id": 11,
"name": "خراسان رضوی" "uuid": "7bfb44b7-646b-11f1-84d7-f26ca1845824",
"name": "خراسان رضوی",
"status": 1,
"weight": 110
}, },
{ {
"id": "12", "id": 12,
"name": "خراسان شمالی" "uuid": "7bfb46c7-646b-11f1-84d7-f26ca1845824",
"name": "خراسان شمالی",
"status": 1,
"weight": 120
}, },
{ {
"id": "13", "id": 13,
"name": "خوزستان" "uuid": "7bfb4897-646b-11f1-84d7-f26ca1845824",
"name": "خوزستان",
"status": 1,
"weight": 130
}, },
{ {
"id": "14", "id": 14,
"name": "زنجان" "uuid": "7bfb4a78-646b-11f1-84d7-f26ca1845824",
"name": "زنجان",
"status": 1,
"weight": 140
}, },
{ {
"id": "15", "id": 15,
"name": "سمنان" "uuid": "7bfb4c40-646b-11f1-84d7-f26ca1845824",
"name": "سمنان",
"status": 1,
"weight": 150
}, },
{ {
"id": "16", "id": 16,
"name": "سیستان و بلوچستان" "uuid": "7bfb4db6-646b-11f1-84d7-f26ca1845824",
"name": "سیستان و بلوچستان",
"status": 1,
"weight": 160
}, },
{ {
"id": "17", "id": 17,
"name": "فارس" "uuid": "7bfb4f39-646b-11f1-84d7-f26ca1845824",
"name": "فارس",
"status": 1,
"weight": 170
}, },
{ {
"id": "18", "id": 18,
"name": "قزوین" "uuid": "7bfb50da-646b-11f1-84d7-f26ca1845824",
"name": "قزوین",
"status": 1,
"weight": 180
}, },
{ {
"id": "19", "id": 19,
"name": "قم" "uuid": "7bfb5214-646b-11f1-84d7-f26ca1845824",
"name": "قم",
"status": 1,
"weight": 190
}, },
{ {
"id": "20", "id": 20,
"name": "کردستان" "uuid": "7bfb5347-646b-11f1-84d7-f26ca1845824",
"name": "کردستان",
"status": 1,
"weight": 200
}, },
{ {
"id": "21", "id": 21,
"name": "کرمان" "uuid": "7bfb54a5-646b-11f1-84d7-f26ca1845824",
"name": "کرمان",
"status": 1,
"weight": 210
}, },
{ {
"id": "22", "id": 22,
"name": "کرمانشاه" "uuid": "7bfb55d3-646b-11f1-84d7-f26ca1845824",
"name": "کرمانشاه",
"status": 1,
"weight": 220
}, },
{ {
"id": "23", "id": 23,
"name": "کهگیلویه و بویراحمد" "uuid": "7bfb5705-646b-11f1-84d7-f26ca1845824",
"name": "کهگیلویه و بویراحمد",
"status": 1,
"weight": 230
}, },
{ {
"id": "24", "id": 24,
"name": "گلستان" "uuid": "7bfb583a-646b-11f1-84d7-f26ca1845824",
"name": "گلستان",
"status": 1,
"weight": 240
}, },
{ {
"id": "25", "id": 25,
"name": "گیلان" "uuid": "7bfb5963-646b-11f1-84d7-f26ca1845824",
"name": "گیلان",
"status": 1,
"weight": 250
}, },
{ {
"id": "26", "id": 26,
"name": "لرستان" "uuid": "7bfb5a8e-646b-11f1-84d7-f26ca1845824",
"name": "لرستان",
"status": 1,
"weight": 260
}, },
{ {
"id": "27", "id": 27,
"name": "مازندران" "uuid": "7bfb5bca-646b-11f1-84d7-f26ca1845824",
"name": "مازندران",
"status": 1,
"weight": 270
}, },
{ {
"id": "28", "id": 28,
"name": "مرکزی" "uuid": "7bfb5cf2-646b-11f1-84d7-f26ca1845824",
"name": "مرکزی",
"status": 1,
"weight": 280
}, },
{ {
"id": "29", "id": 29,
"name": "هرمزگان" "uuid": "7bfb5e34-646b-11f1-84d7-f26ca1845824",
"name": "هرمزگان",
"status": 1,
"weight": 290
}, },
{ {
"id": "30", "id": 30,
"name": "همدان" "uuid": "7bfb5fff-646b-11f1-84d7-f26ca1845824",
"name": "همدان",
"status": 1,
"weight": 300
}, },
{ {
"id": "100", "id": 100,
"name": "یزد" "uuid": "7bfb61b0-646b-11f1-84d7-f26ca1845824",
"name": "یزد",
"status": 1,
"weight": 310
} }
] ]