- health schema: vaccinations, body_measurements, workouts, nutrition_daily, sleep (generated hours), medications, hair_progress, appointments - migration with updated_at triggers; grants to personal_app only - /trackers/health overview with add/edit/delete, owner-gated (404 otherwise), noindex + private no-store, hidden from listings for non-owners - owner-only JSON/CSV import endpoint and scripts/health-import.ts
16 lines
752 B
TypeScript
16 lines
752 B
TypeScript
import { pgSchema } from 'drizzle-orm/pg-core';
|
|
|
|
// One Postgres schema per domain (see ~/dev/setup/db/PLAN.md). `lists`, `legacy`,
|
|
// `energy` and `hardware` are deliberately not modelled here: lists are created at
|
|
// runtime through meta.create_list(), and energy/hardware belong to other tools.
|
|
export const authSchema = pgSchema('auth');
|
|
export const moneySchema = pgSchema('money');
|
|
export const houseSchema = pgSchema('house');
|
|
export const refSchema = pgSchema('ref');
|
|
export const gamesSchema = pgSchema('games');
|
|
export const csSchema = pgSchema('cs');
|
|
export const animaldexSchema = pgSchema('animaldex');
|
|
export const siteSchema = pgSchema('site');
|
|
export const metaSchema = pgSchema('meta');
|
|
export const healthSchema = pgSchema('health');
|