2026.03.29 20:00 Gitea_manager javítás előtt

This commit is contained in:
Roo
2026-03-29 17:59:06 +00:00
parent 03258db091
commit ba8b6579ef
148 changed files with 7951 additions and 591 deletions

View File

@@ -97,7 +97,12 @@ class ServiceReview(Base):
id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True)
service_id: Mapped[int] = mapped_column(Integer, ForeignKey("marketplace.service_profiles.id", ondelete="CASCADE"), nullable=False)
user_id: Mapped[int] = mapped_column(Integer, ForeignKey("identity.users.id", ondelete="SET NULL"), nullable=False)
transaction_id: Mapped[uuid.UUID] = mapped_column(PG_UUID(as_uuid=True), nullable=False, index=True)
transaction_id: Mapped[uuid.UUID] = mapped_column(
PG_UUID(as_uuid=True),
ForeignKey("audit.financial_ledger.transaction_id", ondelete="RESTRICT"),
nullable=False,
index=True
)
# Rating dimensions (1-10)
price_rating: Mapped[int] = mapped_column(Integer, nullable=False) # 1-10
@@ -113,4 +118,5 @@ class ServiceReview(Base):
# Relationships
service: Mapped["ServiceProfile"] = relationship("ServiceProfile", back_populates="reviews")
user: Mapped["User"] = relationship("User", back_populates="service_reviews")
user: Mapped["User"] = relationship("User", back_populates="service_reviews")
financial_transaction: Mapped["FinancialLedger"] = relationship("FinancialLedger", foreign_keys=[transaction_id])