On we go. Maybe soon this will be done

This commit is contained in:
Jonas Linter
2025-11-19 18:40:44 +01:00
parent 93207c3877
commit 434dabbb7a
3 changed files with 416 additions and 125 deletions

View File

@@ -395,6 +395,9 @@ class ConversionGuest(Base):
hashed_country_code = Column(String(64))
hashed_birth_date = Column(String(64))
# Matched customer reference (nullable, filled after matching)
hashed_customer_id = Column(Integer, ForeignKey("hashed_customers.id"), nullable=True, index=True)
# Guest classification
is_regular = Column(Boolean, default=False) # True if guest has many prior stays before appearing in our reservations
@@ -404,6 +407,7 @@ class ConversionGuest(Base):
# Relationships
conversions = relationship("Conversion", back_populates="guest")
hashed_customer = relationship("HashedCustomer", backref="conversion_guests")
@staticmethod
def _normalize_and_hash(value):