class _TestModel(Model): string = Argument(types.String) unicode_ = Argument(types.Unicode, alias="unicode") string_int = Argument(types.Integer) integer = Argument(types.Integer) string_double = Argument(types.Double) double = Argument(types.Double) decimal = Argument(types.Decimal, alias="string_double") date = Argument(types.Date) datetime = Argument(types.Datetime)
class _Model(Model): integer = Argument(types.Double, alias="string")
class _Model(Model): integer = Argument(types.Integer, alias="string")
class _TestModel(Model): null = Argument(types.Unicode(max_len=4), default=1)
class _TestModel(Model): test = Argument(types.Unicode(max_len=4), default=1, multiple=True)
class NestedEntity(Model): demo = Argument(types.Nested(DemoEntity)) c = Argument(types.Integer)
class _TestModel(Model): byte = Argument(types.Unicode(max_len=3))
class _TestModel(Model): string = Argument(types.String)
class _TestModel(Model): byte = Argument(types.Unicode)
class SingleArgEntity(Model): username = Argument(types.String(max_len=100), miss_message="Require username")
class _TestModel(Model): byte = Argument(types.String)
class NestedEntity(Model): demos = Argument(types.Nested(T), alias="demo", multiple=True) c = Argument(types.Integer)
class UserEntity(Model): username = Argument(types.String(max_len=100)) password = Argument(types.String(max_len=64)) name = Argument(types.Unicode(max_len=50)) age = Argument(types.Integer, default=18) badges = Argument(types.Unicode, multiple=True, alias="badge")
class NestedEntity(Model): demos = Argument(types.Nested(DemoEntity), multiple=True) c = Argument(types.Integer)
class _Model(Model): integer = Argument(types.Decimal, alias="string")
class _TestModel(Model): string = Argument(types.Unicode)
class _Model(Model): integer = Argument(types.Datetime, alias="string")
class DemoEntity(Model): a = Argument(types.Integer) b = Argument(types.Integer)