[email] Column is supposed to be unique

This commit is contained in:
maike 2020-07-11 04:26:08 +02:00 committed by dl6tom
parent 0999a72fab
commit 3cbd06a66f

View file

@ -21,7 +21,7 @@ class Email(Model):
""" This table is used to track the hood ID. It also stores the token secret. """
id: Integer(primary_key=True) = None
hood: ForeignKey(Hood)
hood: ForeignKey(Hood) # this is supposed to be unique - dl6tom/ormantic/pulls/1
secret: Text()
class Mapping(Mapping):