fix: consolidate database types to single source of truth
BREAKING: Removed duplicate lib/database.types.ts in favor of lib/supabase/database.types.ts Problem: - Database types existed in two locations causing sync issues - Old lib/database.types.ts was empty (0 bytes) - Import paths were inconsistent across codebase - Build failed due to missing type definitions Solution: - Generated fresh types from remote Supabase database - Updated all imports from @/lib/database.types to @/lib/supabase/database.types - Removed duplicate lib/database.types.ts file Affected modules: - lib/auth/server.ts - Auth server utilities - lib/auth/client.ts - Auth client utilities - lib/types/client.ts - Client type definitions - lib/fhir/transforms/patient.ts - FHIR patient transforms - lib/fhir/transforms/practitioner.ts - FHIR practitioner transforms Impact: All database queries now use up-to-date type definitions including new tables (intakes, risk_assessments, encounters, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,31 @@ export type Database = {
|
||||
__InternalSupabase: {
|
||||
PostgrestVersion: "13.0.5"
|
||||
}
|
||||
graphql_public: {
|
||||
Tables: {
|
||||
[_ in never]: never
|
||||
}
|
||||
Views: {
|
||||
[_ in never]: never
|
||||
}
|
||||
Functions: {
|
||||
graphql: {
|
||||
Args: {
|
||||
extensions?: Json
|
||||
operationName?: string
|
||||
query?: string
|
||||
variables?: Json
|
||||
}
|
||||
Returns: Json
|
||||
}
|
||||
}
|
||||
Enums: {
|
||||
[_ in never]: never
|
||||
}
|
||||
CompositeTypes: {
|
||||
[_ in never]: never
|
||||
}
|
||||
}
|
||||
public: {
|
||||
Tables: {
|
||||
ai_events: {
|
||||
@@ -1535,6 +1560,9 @@ export type CompositeTypes<
|
||||
: never
|
||||
|
||||
export const Constants = {
|
||||
graphql_public: {
|
||||
Enums: {},
|
||||
},
|
||||
public: {
|
||||
Enums: {
|
||||
careplan_status: [
|
||||
|
||||
Reference in New Issue
Block a user