Merge pull request #31 from manmohan659/fix/chat-api-fk

fix(chat-api): defer users FK to avoid startup crash
This commit is contained in:
Manmohan 2026-04-16 17:41:05 -04:00 committed by GitHub
commit 129553b215
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ class Conversation(Base):
)
user_id: Mapped[uuid.UUID] = mapped_column(
sa.Uuid(as_uuid=True),
sa.ForeignKey("users.id", ondelete="CASCADE"),
sa.ForeignKey("users.id", ondelete="CASCADE", use_alter=True),
nullable=False,
index=True,
)