@betterinternship/schema.base
v1.1.1
Published
Core library of BetterInternship base schema.
Downloads
449
Readme
Package.Schema.Base
Generates TypeScript types from the Supabase database schema so your app stays in sync with the DB.
How to run
Make your DB changes in Supabase
Install deps
npm iLogin to Supabase CLI (once):
npx supabase loginGenerate DEV types:
npx supabase gen types typescript --project-id "nboineimhjsdnwxrttxq" --schema public > lib/db.dev.base-types.tsGenerate PROD types:
npx supabase gen types typescript --project-id "ubbtvthwccrnjrkhcwjw" --schema public > lib/db.types.tsBuild schema
npm run publish
