Пример #1
0
 class InetTestModel(Model):
     id = UUID(primary_key=True, default=uuid4)
     address = Inet()
Пример #2
0
    class TestModel(Model):

        __table_name__ = 'alter_doesnt_break_running_app'
        id = UUID(primary_key=True, default=uuid4)
Пример #3
0
    class TestModel(Model):

        id = UUID(primary_key=True, default=uuid4)
Пример #4
0
    class BigIntTest(Model):

        test_id = UUID(primary_key=True, default=lambda: uuid4())
        value = BigInt(default=0, required=True)
Пример #5
0
    class IntegerTest(Model):

        test_id = UUID(primary_key=True, default=lambda: uuid4())
        value = Integer(default=0, required=True)
Пример #6
0
    class UUIDTest(Model):

        test_id = Integer(primary_key=True)
        a_uuid = UUID(default=uuid4())