class MyModel(models.BaseModel):
     test_field1 = models.Field(required=True)
     test_field2 = models.Field(required=True, default=time.time)
     test_field3 = models.Field(required=False)
     test_field4 = models.Field(
         required=True,
         validation=lambda x: (isinstance(x, int), {
             'detail': 'test_field4 must be an int.'
         }))
 class MyModel(models.BaseModel):
     one = models.Field(default=1)
     two = models.Field(default=2)
     three = models.Field(default=3)
     four = models.Field(default=4)
 class MyModel1(models.BaseModel):
     test_field = models.Field()
 class MyModel(models.BaseModel):
     test_field1 = models.Field()
     test_field2 = models.Field()
     test_field3 = models.Field()
        class MyModel(models.Model):
            one = models.Field(default=1)

            class Meta:
                collection = 'my-model'
                model_name = 'my_model'
 class MyModel(models.BaseModel):
     one = models.Field()
     two = models.Field()
     three = models.Field()
     four = models.Field()
 class MyModel(models.BaseModel):
     test_field = models.Field(required=True)