class Person(models.Base): name = fields.StringField( validators=validators.Regex('^[a-z]+$', ignorecase=True))
class ParkingPlace(models.Base): location = fields.StringField() car = fields.EmbeddedField(Car)
class Lamborghini(models.Base): brand = fields.StringField()
class EmbeddingModel(mf.ModelBase): field1 = fields.StringField() embedded = fields.EmbeddedField(ModelTest)
class Person(models.Base): names = fields.ListField(str) surname = fields.StringField()
class EmbeddedModel(mf.ModelBase): field = fields.StringField()
class ModelTestWithIndexes(mf.ModelBase): field1 = fields.StringField() field2 = fields.StringField() field3 = fields.StringField()
class PublishModelRequest(models.Base): model = fields.StringField(required=True) force_publish_task = fields.BoolField(default=False) publish_task = fields.BoolField(default=True)
class ModelTaskPublishResponse(models.Base): id = fields.StringField(required=True) data = fields.EmbeddedField(TaskPublishResponse)
class ReffedTestModel(mf.ModelBase): name = fields.StringField()
class CreateModelResponse(models.Base): id = fields.StringField(required=True) created = fields.BoolField(required=True)
class User(models.Base): name = fields.StringField(nullable=True) props = fields.ListField([str, int, float], nullable=True) embedded = fields.EmbeddedField(Emb, nullable=True)
class Emb(models.Base): name = fields.StringField(nullable=True)
class Person(models.Base): name = fields.StringField( validators=validators.Regex('/^[a-z]+$/i', ignorecase=False))
class Topic(mf.MixinBase): topic = fields.StringField(required=True)
class Person(models.Base): name = fields.StringField(required=True) surname = fields.StringField(required=True) age = fields.IntField() cash = fields.FloatField()
class Name(mf.MixinBase): name = fields.StringField()
class Cat(models.Base): name = fields.StringField(required=True) breed = fields.StringField()
class ModelTest(mf.ModelBase, mixins.BasicEvents): table_name = 'table1' field1 = fields.StringField() field2 = fields.StringField() field3 = fields.StringField()
class Dog(models.Base): name = fields.StringField(required=True) age = fields.IntField()
class IndexesMixin(mf.MixinBase): foo = fields.StringField() bar = fields.StringField()
class Person(models.Base): name = fields.StringField(required=True) surname = fields.StringField(required=True) pets = fields.ListField(items_types=[Cat, Dog])
class Parking(models.Base): location = fields.StringField() cars = fields.ListField([Viper, Lamborghini])
class Viper(models.Base): serial = fields.StringField()
class Person(models.Base): name = fields.StringField() mix = fields.ListField((str, float))
class Lamborghini(models.Base): serial = fields.StringField()
class Viper(models.Base): brand = fields.StringField()
class ProjectReq(models.Base): project = fields.StringField()
class Person(models.Base): name = fields.StringField() surname = fields.StringField() age = fields.IntField() cash = fields.FloatField()
class LogicalRouterPort(mf.ModelBase, mixins.Topic, mixins.UniqueKey): mac = fields.StringField() lswitch = df_fields.ReferenceField(l2.LogicalSwitch) network = df_fields.IpNetworkField()