Develop shell command for instantiating all DB tables fast, import all models

This commit is contained in:
Xevion
2022-03-27 09:44:54 -05:00
parent 5ebbbd1b03
commit ced2f975ae
3 changed files with 7 additions and 3 deletions

View File

@@ -63,4 +63,4 @@ class Comment(db.Model):
id = db.Column(db.Integer, primary_key=True)
text = db.Column(db.Text, nullable=False)
author = db.Column(db.Integer, db.ForeignKey('user.id'), nullable=False)
post = db.Column(db.Integer, db.ForeignKey('post.id'), nulllable=False)
post = db.Column(db.Integer, db.ForeignKey('post.id'), nullable=False)