From b34feee80056c73b1f18ff9ecdf99e7297c8bb9f Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 24 May 2021 13:00:03 +0200 Subject: [PATCH] fixing bug --- ereuse_devicehub/resources/user/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ereuse_devicehub/resources/user/models.py b/ereuse_devicehub/resources/user/models.py index 5923e35b..8ddb7c11 100644 --- a/ereuse_devicehub/resources/user/models.py +++ b/ereuse_devicehub/resources/user/models.py @@ -62,6 +62,7 @@ class UserInventory(db.Model): class Session(Thing): + __table_args__ = {'schema': 'common'} id = Column(BigInteger, Sequence('device_seq'), primary_key=True) expired = Column(BigInteger, default=0) token = Column(UUID(as_uuid=True), default=uuid4, unique=True, nullable=False)