Jcloghesy / finalProject

1 stars 0 forks source link

Backend - Create Database & Seed #8

Open Jcloghesy opened 1 year ago

Jcloghesy commented 1 year ago
Jcloghesy commented 1 year ago

3.0 DATABASE SETUP/WORK (Assuming pg is installed)

3.1 WORKSPACE SETUP: Start Postgres Server & PostgreSQL Command Line Shell

3.2 CREATE DATABASE: Create DB

3.3 CREATE TABLES & COLUMNS USING SCHEMA: "\i "

lightbnb=# \i migrations/01_schema.sql psql: migrations/01_schema.sql:5: NOTICE: table "users" does not exist, skipping DROP TABLE CREATE TABLE….

Ensure: Tables created / exist in database Enter \dt at the psql prompt.

Jcloghesy commented 1 year ago

TODO

Split database schema into separate files, one per table See db folder for pre-populated examples

Warnings & Tips