phase-8: polish, global search, audit log, packaging, and demo docs
This commit is contained in:
@@ -28,10 +28,10 @@ class DemoEquipment(Base):
|
||||
name: Mapped[str] = mapped_column(String(200), nullable=False)
|
||||
equipment_type: Mapped[str] = mapped_column(String(100), nullable=False)
|
||||
supplier_id: Mapped[int] = mapped_column(ForeignKey("vendors.id"), nullable=False)
|
||||
department_id: Mapped[int] = mapped_column(ForeignKey("departments.id"), nullable=False)
|
||||
department_id: Mapped[int] = mapped_column(ForeignKey("departments.id"), index=True, nullable=False)
|
||||
location_id: Mapped[Optional[int]] = mapped_column(ForeignKey("locations.id"), nullable=True)
|
||||
start_date: Mapped[date] = mapped_column(Date, nullable=False)
|
||||
expected_return_date: Mapped[date] = mapped_column(Date, nullable=False)
|
||||
expected_return_date: Mapped[date] = mapped_column(Date, index=True, nullable=False)
|
||||
actual_return_date: Mapped[Optional[date]] = mapped_column(Date, nullable=True)
|
||||
remarks: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=utc_now, nullable=False)
|
||||
@@ -48,9 +48,9 @@ class DepartmentVisit(Base):
|
||||
__tablename__ = "department_visits"
|
||||
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
|
||||
department_id: Mapped[int] = mapped_column(ForeignKey("departments.id"), nullable=False)
|
||||
department_id: Mapped[int] = mapped_column(ForeignKey("departments.id"), index=True, nullable=False)
|
||||
visited_by_id: Mapped[int] = mapped_column(ForeignKey("users.id"), nullable=False)
|
||||
visit_date: Mapped[date] = mapped_column(Date, nullable=False)
|
||||
visit_date: Mapped[date] = mapped_column(Date, index=True, nullable=False)
|
||||
observations: Mapped[Optional[str]] = mapped_column(Text, nullable=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), default=utc_now, nullable=False)
|
||||
created_by_id: Mapped[Optional[int]] = mapped_column(ForeignKey("users.id"), nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user