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)
class Movie(Table): features = JSON()
class Movie(Table): meta = JSON() meta_b = JSONB()
class RecordingStudio(Table): name = Varchar(length=100) facilities = JSON(null=True)
class Studio(Table, help_text="A movie studio."): pk = UUID(primary_key=True) name = Varchar() facilities = JSON()