Files
the_order/packages/database
defiQUG 92cc41d26d Add Legal Office seal and complete Azure CDN deployment
- Add Legal Office of the Master seal (SVG design with Maltese Cross, scales of justice, legal scroll)
- Create legal-office-manifest-template.json for Legal Office credentials
- Update SEAL_MAPPING.md and DESIGN_GUIDE.md with Legal Office seal documentation
- Complete Azure CDN infrastructure deployment:
  - Resource group, storage account, and container created
  - 17 PNG seal files uploaded to Azure Blob Storage
  - All manifest templates updated with Azure URLs
  - Configuration files generated (azure-cdn-config.env)
- Add comprehensive Azure CDN setup scripts and documentation
- Fix manifest URL generation to prevent double slashes
- Verify all seals accessible via HTTPS
2025-11-12 22:03:42 -08:00
..

@the-order/database

PostgreSQL database client and utilities for The Order.

Usage

import { getPool, query, healthCheck } from '@the-order/database';

// Initialize pool
const pool = getPool({
  connectionString: process.env.DATABASE_URL,
  max: 20,
});

// Execute query
const result = await query('SELECT * FROM users WHERE id = $1', [userId]);

// Health check
const isHealthy = await healthCheck();

Migrations

Migrations are handled by node-pg-migrate:

# Create a new migration
pnpm --filter @the-order/database migrate:create migration-name

# Run migrations
pnpm --filter @the-order/database migrate up

# Rollback migrations
pnpm --filter @the-order/database migrate down