add session schema

This commit is contained in:
Cayo Puigdefabregas 2021-04-15 21:17:24 +02:00
parent 9c489c7564
commit bae5a1d2b1
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ from ereuse_devicehub.resources.inventory.schema import Inventory
from ereuse_devicehub.resources.schemas import Thing from ereuse_devicehub.resources.schemas import Thing
class Session(Thing):
token = String(dump_only=True)
class User(Thing): class User(Thing):
id = UUID(dump_only=True) id = UUID(dump_only=True)
email = Email(required=True) email = Email(required=True)