Files
publisher-dashboard/packages/db-schema
igm c9de0b1ac5 Add sideEffects: false to all library packages
Enables tree-shaking for bundlers by marking all library packages
as side-effect-free.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 15:22:24 +08:00
..
2026-01-12 13:59:34 +08:00

@reviq/db-schema

Database schema types generated from PostgreSQL using kysely-codegen.

Usage

import type { Database } from "@reviq/db-schema";

Regenerating Types

When the database schema changes, regenerate the types:

bun run --cwd packages/db-schema generate

This requires DATABASE_URL to be set and pointing to a database with the current schema.

Exports

  • Database - The full database type for use with Kysely
  • Table types for all database tables (e.g., Users, Orgs, Sessions)