feat(projects): داده‌های واقعی پروژه‌ها — ستون‌های تازه و حذف داده‌های ماک

- دیتابیس/مدل/اسکیما: land_area (مساحت عرصه)، pilot_floors (طبقات روی
  همکف/پیلوت) و سه ستون واحدها (مسکونی/تجاری/اداری) به‌جای «واحدها»ی تکی
- فایل استاتیک projectsData (داده‌های ماک) حذف شد؛ لیست، جزئیات و
  «پروژه‌های شاخص» همه از دیتابیس می‌خوانند
- برچسب‌های i18n فهرست مشخصات مطابق شیت تیم
This commit is contained in:
aramesh-site deploy
2026-09-28 10:50:39 +00:00
parent 0c87a287a3
commit 182a1bb674
10 changed files with 60 additions and 117 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ EN_COLUMNS: list[tuple[str, str, str]] = [
("projects", "year_en", "VARCHAR(64)"),
("projects", "area_en", "VARCHAR(64)"),
("projects", "floors_en", "VARCHAR(64)"),
("projects", "units_en", "VARCHAR(64)"),
("projects", "land_area", "VARCHAR(64)"),
("projects", "pilot_floors", "VARCHAR(32)"),
("projects", "units_residential", "VARCHAR(32)"),
("projects", "units_commercial", "VARCHAR(32)"),
("projects", "units_office", "VARCHAR(32)"),
("projects", "client_en", "VARCHAR(128)"),
("projects", "project_type", "VARCHAR(128)"),
("projects", "project_type_en", "VARCHAR(128)"),
+5 -2
View File
@@ -72,8 +72,11 @@ class Project(Base):
area_en: Mapped[str] = mapped_column(String(64), default="")
floors: Mapped[str] = mapped_column(String(64), default="")
floors_en: Mapped[str] = mapped_column(String(64), default="")
units: Mapped[str] = mapped_column(String(64), default="")
units_en: Mapped[str] = mapped_column(String(64), default="")
land_area: Mapped[str] = mapped_column(String(64), default="")
pilot_floors: Mapped[str] = mapped_column(String(32), default="")
units_residential: Mapped[str] = mapped_column(String(32), default="")
units_commercial: Mapped[str] = mapped_column(String(32), default="")
units_office: Mapped[str] = mapped_column(String(32), default="")
client: Mapped[str] = mapped_column(String(128), default="")
client_en: Mapped[str] = mapped_column(String(128), default="")
# مشخصات تکمیلی پروژه — به درخواست تیم: نوع پروژه و کاربری
+10 -4
View File
@@ -57,8 +57,11 @@ class ProjectOut(ORMModel):
area_en: str = ""
floors: str
floors_en: str = ""
units: str
units_en: str = ""
land_area: str = ""
pilot_floors: str = ""
units_residential: str = ""
units_commercial: str = ""
units_office: str = ""
client: str
client_en: str = ""
project_type: str = ""
@@ -455,6 +458,11 @@ class ProjectIn(BaseModel):
year: str = ""
year_en: str = ""
status: Literal["done", "progress"] = "done"
land_area: str = ""
pilot_floors: str = ""
units_residential: str = ""
units_commercial: str = ""
units_office: str = ""
project_type: str = ""
project_type_en: str = ""
usage: str = ""
@@ -465,8 +473,6 @@ class ProjectIn(BaseModel):
area_en: str = ""
floors: str = ""
floors_en: str = ""
units: str = ""
units_en: str = ""
client: str = ""
client_en: str = ""
summary: str = ""