#!/bin/sh

DIR="$(cd "$(dirname "$0")" && pwd)"

# Start the local Postgres database
"$DIR"/start

# Ensure the stop script is called on exit
trap '"$DIR"/stop' EXIT

# Generate Zod schemas from the Postgres database schema
zod-pg --connection-string "postgresql://postgres:postgres@localhost:5432/songwhip_presaves"
