mirror of
https://github.com/karpathy/nanochat.git
synced 2026-06-15 02:29:09 +00:00
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:
commit
129553b215
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user