Skip to content

Commit

Permalink
add safe and unsafe to the enum in the validation table
Browse files Browse the repository at this point in the history
  • Loading branch information
shincap8 committed Aug 12, 2024
1 parent 32c6ead commit e299c55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/app/infrastructure/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ class Validation(Base):
id = Column(Integer, primary_key=True)
uid = Column(ForeignKey("users.id"), index=True)
eid = Column(ForeignKey("examples.id"), nullable=False, index=True)
label = Column(Enum("flagged", "correct", "incorrect", "placeholder"))
label = Column(
Enum("flagged", "correct", "incorrect", "placeholder", "safe", "unsafe")
)
mode = Column(Enum("user", "owner"))
metadata_json = Column(Text)

Expand Down

0 comments on commit e299c55

Please sign in to comment.