Skip to content

Commit

Permalink
Update database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Jan 19, 2025
1 parent a4c9f8d commit a7615f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenOversight/app/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ class Note(BaseModel, TrackUpdates):
class Description(BaseModel, TrackUpdates):
__tablename__ = "descriptions"

officer = db.relationship("Officer", back_populates="descriptions")
id = db.Column(db.Integer, primary_key=True)
text_contents = db.Column(db.Text())
officer_id = db.Column(db.Integer, db.ForeignKey("officers.id", ondelete="CASCADE"))
officer = db.relationship("Officer", back_populates="descriptions")


class Officer(BaseModel, TrackUpdates):
Expand Down

0 comments on commit a7615f1

Please sign in to comment.