Fix one tag id per organization
This commit is contained in:
parent
9cffa92125
commit
2aaa79e8b4
|
@ -75,8 +75,8 @@ class Tag(Thing):
|
||||||
return url
|
return url
|
||||||
|
|
||||||
__table_args__ = (
|
__table_args__ = (
|
||||||
UniqueConstraint(device_id, org_id, name='one_tag_per_org'),
|
UniqueConstraint(id, org_id, name='one tag id per organization'),
|
||||||
UniqueConstraint(secondary, org_id, name='one_secondary_per_org')
|
UniqueConstraint(secondary, org_id, name='one secondary tag per organization')
|
||||||
)
|
)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
|
|
Reference in New Issue