From c8c60358c75bedcba3ddc2e3e77e6d47c21be690 Mon Sep 17 00:00:00 2001 From: Moheeb Zara Date: Sun, 2 Aug 2026 04:11:25 -0700 Subject: [PATCH] refactor(types): mark types/database.ts as generated (slice 0) Banner documenting the regenerate command and that hand-written domain types belong in types/domain/*, not here. No code change. Co-Authored-By: Claude Opus 4.8 (1M context) --- types/database.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/types/database.ts b/types/database.ts index 512ecf3..63706ab 100644 --- a/types/database.ts +++ b/types/database.ts @@ -1,3 +1,19 @@ +// ============================================================================= +// GENERATED FILE — do not edit by hand. +// +// This is the Supabase-generated database type surface. Regenerate it wholesale +// from the live schema rather than hand-editing: +// +// supabase gen types typescript --schema public > types/database.ts +// +// Hand-written domain types live in types/domain/* (aliases, composites), NOT +// here. A few entries (the class_signup_tx / class_cancel_tx RPCs) are +// currently hand-added to match scripts/*.sql until the next regeneration; some +// embedded-select relationships are also missing from this file, which is why a +// handful of call sites carry `as unknown as // TODO(types)` casts — those +// disappear once this is regenerated against the real database. +// ============================================================================= + export type Json = | string | number