Merge pull request #144 from nomic-ai/ParisNeo-patch-3

Update db.py
This commit is contained in:
Saifeddine ALOUI 2023-05-05 07:36:08 +02:00 committed by GitHub
commit 22870db513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ class DiscussionsDB:
type INT NOT NULL,
rank INT NOT NULL,
parent INT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
discussion_id INTEGER NOT NULL,
FOREIGN KEY (discussion_id) REFERENCES discussion(id),
FOREIGN KEY (parent) REFERENCES message(id)