piccolo-orm / piccolo

A fast, user friendly ORM and query builder which supports asyncio.
https://piccolo-orm.com/
MIT License
1.32k stars 86 forks source link

Add `Album` table to playground #999

Closed dantownsend closed 1 month ago

dantownsend commented 1 month ago

When testing queries in the playground, it would be useful to have a table with a foreign key to another table which contains a JSON column:

class Album(Table):
    name = Varchar()
    band = ForeignKey(Band)
    release_date = Date()
    recorded_at = ForeignKey(RecordingStudio)  # <- This