Exemple #1
0
class RecordingStudio(Table):
    """
    Used for testing JSON and JSONB columns.
    """

    facilities = JSON()
    facilities_b = JSONB()
class RecordingStudio(Table):
    """
    Used for testing JSON and JSONB columns.
    """

    facilities = JSON(default={"amplifier": False, "microphone": True})
    facilities_b = JSONB()
    records = BigInt(default=9223372036854775807)
Exemple #3
0
 class Movie(Table):
     features = JSON()
Exemple #4
0
 class Movie(Table):
     meta = JSON()
     meta_b = JSONB()
Exemple #5
0
class RecordingStudio(Table):
    name = Varchar(length=100)
    facilities = JSON(null=True)
Exemple #6
0
class Studio(Table, help_text="A movie studio."):
    pk = UUID(primary_key=True)
    name = Varchar()
    facilities = JSON()