#!/usr/bin/env bash set -ex # Install pre-requisites # npm install -g @softwaretechnik/dbml-renderer # TO RUN # # cd /home/logic/_wsl_workspace/HKSingleParty/02_design/schema # nodemon --ext dbml -w . --exec "./update.sh" # npx -p @dbml/cli dbml2sql ./schema.dbml -o ./schema.sql npx dbml-renderer -i schema.dbml -o output.svg # process fake_auth.user to auth.user node ./modify_fake_table.js # move to target sql file mv ./schema.sql ../../04_poc/009_poc_chatroom_implement/docker/supabase/migrations/00003_party_schema_dbml.sql