2019-06-10 21:24:35 +00:00
|
|
|
from jsonmodels.fields import StringField
|
|
|
|
from jsonmodels.models import Base
|
|
|
|
|
2021-01-05 14:28:49 +00:00
|
|
|
from apiserver.apimodels import DictField
|
2019-06-10 21:24:35 +00:00
|
|
|
|
|
|
|
|
2024-02-13 14:15:55 +00:00
|
|
|
class UserRequest(Base):
|
|
|
|
user = StringField(required=True)
|
|
|
|
|
|
|
|
|
2019-06-10 21:24:35 +00:00
|
|
|
class CreateRequest(Base):
|
|
|
|
id = StringField(required=True)
|
|
|
|
name = StringField(required=True)
|
|
|
|
company = StringField(required=True)
|
|
|
|
family_name = StringField()
|
|
|
|
given_name = StringField()
|
|
|
|
avatar = StringField()
|
|
|
|
|
|
|
|
|
|
|
|
class SetPreferencesRequest(Base):
|
|
|
|
preferences = DictField(required=True)
|