Schema Creation
If you downloaded the SQL file from the PostgreSQL Exercises site, then you canload the data into a PostgreSQL database using the following commands:
- createdb peewee_test
- psql -U postgres -f clubdata.sql -d peewee_test -x -q
To create the schema using Peewee, without loading the sample data, you can runthe following:
- # Assumes you have created the database "peewee_test" already.
- db.create_tables([Member, Facility, Booking])