From 56a5cbefb60301c18a04dc94d732ead3342c9497 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 7 Aug 2026 04:12:38 +0000 Subject: [PATCH] Modified by www.SourceFiles.app --- src/integrations/supabase/types.ts | 1596 ---------------------------- 1 file changed, 1596 deletions(-) delete mode 100644 src/integrations/supabase/types.ts diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts deleted file mode 100644 index 4c75f05..0000000 --- a/src/integrations/supabase/types.ts +++ /dev/null @@ -1,1596 +0,0 @@ -export type Json = - | string - | number - | boolean - | null - | { [key: string]: Json | undefined } - | Json[] - -export type Database = { - // Allows to automatically instantiate createClient with right options - // instead of createClient(URL, KEY) - __InternalSupabase: { - PostgrestVersion: "14.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: { - assignments: { - Row: { - category_id: string | null - class_id: string - created_at: string - created_by: string | null - date: string | null - id: string - max_points: number - name: string - } - Insert: { - category_id?: string | null - class_id: string - created_at?: string - created_by?: string | null - date?: string | null - id?: string - max_points?: number - name: string - } - Update: { - category_id?: string | null - class_id?: string - created_at?: string - created_by?: string | null - date?: string | null - id?: string - max_points?: number - name?: string - } - Relationships: [ - { - foreignKeyName: "assignments_category_id_fkey" - columns: ["category_id"] - isOneToOne: false - referencedRelation: "grade_categories" - referencedColumns: ["id"] - }, - { - foreignKeyName: "assignments_class_id_fkey" - columns: ["class_id"] - isOneToOne: false - referencedRelation: "classes" - referencedColumns: ["id"] - }, - ] - } - attendance: { - Row: { - created_at: string - date: string - id: string - note: string | null - recorded_by: string | null - status: Database["public"]["Enums"]["attendance_status"] - student_id: string - } - Insert: { - created_at?: string - date: string - id?: string - note?: string | null - recorded_by?: string | null - status?: Database["public"]["Enums"]["attendance_status"] - student_id: string - } - Update: { - created_at?: string - date?: string - id?: string - note?: string | null - recorded_by?: string | null - status?: Database["public"]["Enums"]["attendance_status"] - student_id?: string - } - Relationships: [ - { - foreignKeyName: "attendance_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - authorized_pickups: { - Row: { - alt_phone: string | null - created_at: string - id: string - kind: string - name: string - notes: string | null - phone: string | null - relationship: string | null - sort_order: number - student_id: string - } - Insert: { - alt_phone?: string | null - created_at?: string - id?: string - kind?: string - name: string - notes?: string | null - phone?: string | null - relationship?: string | null - sort_order?: number - student_id: string - } - Update: { - alt_phone?: string | null - created_at?: string - id?: string - kind?: string - name?: string - notes?: string | null - phone?: string | null - relationship?: string | null - sort_order?: number - student_id?: string - } - Relationships: [ - { - foreignKeyName: "authorized_pickups_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - calendar_events: { - Row: { - created_at: string - created_by: string | null - date: string - description: string | null - end_date: string | null - id: string - title: string - } - Insert: { - created_at?: string - created_by?: string | null - date: string - description?: string | null - end_date?: string | null - id?: string - title: string - } - Update: { - created_at?: string - created_by?: string | null - date?: string - description?: string | null - end_date?: string | null - id?: string - title?: string - } - Relationships: [] - } - classes: { - Row: { - created_at: string - id: string - name: string - teacher_id: string | null - } - Insert: { - created_at?: string - id?: string - name: string - teacher_id?: string | null - } - Update: { - created_at?: string - id?: string - name?: string - teacher_id?: string | null - } - Relationships: [] - } - contracts: { - Row: { - created_at: string - file_path: string - id: string - student_id: string - title: string | null - uploaded_by: string | null - } - Insert: { - created_at?: string - file_path: string - id?: string - student_id: string - title?: string | null - uploaded_by?: string | null - } - Update: { - created_at?: string - file_path?: string - id?: string - student_id?: string - title?: string | null - uploaded_by?: string | null - } - Relationships: [ - { - foreignKeyName: "contracts_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - form_responses: { - Row: { - data_json: Json - form_id: string - id: string - student_id: string | null - submitted_at: string - submitted_by: string - } - Insert: { - data_json?: Json - form_id: string - id?: string - student_id?: string | null - submitted_at?: string - submitted_by: string - } - Update: { - data_json?: Json - form_id?: string - id?: string - student_id?: string | null - submitted_at?: string - submitted_by?: string - } - Relationships: [ - { - foreignKeyName: "form_responses_form_id_fkey" - columns: ["form_id"] - isOneToOne: false - referencedRelation: "forms" - referencedColumns: ["id"] - }, - { - foreignKeyName: "form_responses_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - forms: { - Row: { - active: boolean - created_at: string - created_by: string | null - description: string | null - id: string - schema_json: Json - title: string - } - Insert: { - active?: boolean - created_at?: string - created_by?: string | null - description?: string | null - id?: string - schema_json?: Json - title: string - } - Update: { - active?: boolean - created_at?: string - created_by?: string | null - description?: string | null - id?: string - schema_json?: Json - title?: string - } - Relationships: [] - } - grade_categories: { - Row: { - class_id: string | null - created_at: string - id: string - name: string - sort_order: number - weight: number - } - Insert: { - class_id?: string | null - created_at?: string - id?: string - name: string - sort_order?: number - weight?: number - } - Update: { - class_id?: string | null - created_at?: string - id?: string - name?: string - sort_order?: number - weight?: number - } - Relationships: [ - { - foreignKeyName: "grade_categories_class_id_fkey" - columns: ["class_id"] - isOneToOne: false - referencedRelation: "classes" - referencedColumns: ["id"] - }, - ] - } - grade_scale: { - Row: { - class_id: string | null - created_at: string - id: string - letter: string - min_percent: number - } - Insert: { - class_id?: string | null - created_at?: string - id?: string - letter: string - min_percent: number - } - Update: { - class_id?: string | null - created_at?: string - id?: string - letter?: string - min_percent?: number - } - Relationships: [ - { - foreignKeyName: "grade_scale_class_id_fkey" - columns: ["class_id"] - isOneToOne: false - referencedRelation: "classes" - referencedColumns: ["id"] - }, - ] - } - grades: { - Row: { - assignment_id: string - created_at: string - id: string - points: number | null - student_id: string - updated_at: string - } - Insert: { - assignment_id: string - created_at?: string - id?: string - points?: number | null - student_id: string - updated_at?: string - } - Update: { - assignment_id?: string - created_at?: string - id?: string - points?: number | null - student_id?: string - updated_at?: string - } - Relationships: [ - { - foreignKeyName: "grades_assignment_id_fkey" - columns: ["assignment_id"] - isOneToOne: false - referencedRelation: "assignments" - referencedColumns: ["id"] - }, - { - foreignKeyName: "grades_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - intake_tokens: { - Row: { - created_at: string - created_by: string | null - expires_at: string - id: string - student_id: string - token: string - used_at: string | null - } - Insert: { - created_at?: string - created_by?: string | null - expires_at: string - id?: string - student_id: string - token: string - used_at?: string | null - } - Update: { - created_at?: string - created_by?: string | null - expires_at?: string - id?: string - student_id?: string - token?: string - used_at?: string | null - } - Relationships: [ - { - foreignKeyName: "intake_tokens_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - ledger_entries: { - Row: { - amount_cents: number - attendance_id: string | null - category: Database["public"]["Enums"]["ledger_category"] - created_at: string - created_by: string | null - date: string - id: string - kind: Database["public"]["Enums"]["ledger_kind"] - note: string | null - student_id: string - } - Insert: { - amount_cents: number - attendance_id?: string | null - category?: Database["public"]["Enums"]["ledger_category"] - created_at?: string - created_by?: string | null - date?: string - id?: string - kind: Database["public"]["Enums"]["ledger_kind"] - note?: string | null - student_id: string - } - Update: { - amount_cents?: number - attendance_id?: string | null - category?: Database["public"]["Enums"]["ledger_category"] - created_at?: string - created_by?: string | null - date?: string - id?: string - kind?: Database["public"]["Enums"]["ledger_kind"] - note?: string | null - student_id?: string - } - Relationships: [ - { - foreignKeyName: "ledger_entries_attendance_id_fkey" - columns: ["attendance_id"] - isOneToOne: true - referencedRelation: "attendance" - referencedColumns: ["id"] - }, - { - foreignKeyName: "ledger_entries_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - mail_server_settings: { - Row: { - id: boolean - imap_host: string - imap_port: number - imap_secure: boolean - smtp_host: string - smtp_port: number - smtp_secure: boolean - updated_at: string - updated_by: string | null - } - Insert: { - id?: boolean - imap_host: string - imap_port?: number - imap_secure?: boolean - smtp_host: string - smtp_port?: number - smtp_secure?: boolean - updated_at?: string - updated_by?: string | null - } - Update: { - id?: boolean - imap_host?: string - imap_port?: number - imap_secure?: boolean - smtp_host?: string - smtp_port?: number - smtp_secure?: boolean - updated_at?: string - updated_by?: string | null - } - Relationships: [] - } - message_threads: { - Row: { - created_at: string - created_by: string - id: string - student_id: string | null - subject: string | null - updated_at: string - } - Insert: { - created_at?: string - created_by: string - id?: string - student_id?: string | null - subject?: string | null - updated_at?: string - } - Update: { - created_at?: string - created_by?: string - id?: string - student_id?: string | null - subject?: string | null - updated_at?: string - } - Relationships: [ - { - foreignKeyName: "message_threads_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - messages: { - Row: { - body: string - created_at: string - id: string - sender_id: string - thread_id: string - } - Insert: { - body: string - created_at?: string - id?: string - sender_id: string - thread_id: string - } - Update: { - body?: string - created_at?: string - id?: string - sender_id?: string - thread_id?: string - } - Relationships: [ - { - foreignKeyName: "messages_thread_id_fkey" - columns: ["thread_id"] - isOneToOne: false - referencedRelation: "message_threads" - referencedColumns: ["id"] - }, - ] - } - parent_students: { - Row: { - created_at: string - id: string - parent_id: string - relationship: string | null - student_id: string - } - Insert: { - created_at?: string - id?: string - parent_id: string - relationship?: string | null - student_id: string - } - Update: { - created_at?: string - id?: string - parent_id?: string - relationship?: string | null - student_id?: string - } - Relationships: [ - { - foreignKeyName: "parent_students_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - plan_accommodations: { - Row: { - category: string - created_at: string - description: string - id: string - plan_id: string - setting: string | null - sort_order: number - } - Insert: { - category?: string - created_at?: string - description: string - id?: string - plan_id: string - setting?: string | null - sort_order?: number - } - Update: { - category?: string - created_at?: string - description?: string - id?: string - plan_id?: string - setting?: string | null - sort_order?: number - } - Relationships: [ - { - foreignKeyName: "plan_accommodations_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: false - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - plan_details: { - Row: { - confidential_notes: string | null - consent_date: string | null - eligibility_category: string | null - eligibility_notes: string | null - evaluation_summary: string | null - last_evaluation_date: string | null - parent_concerns: string | null - plan_id: string - student_strengths: string | null - updated_at: string - } - Insert: { - confidential_notes?: string | null - consent_date?: string | null - eligibility_category?: string | null - eligibility_notes?: string | null - evaluation_summary?: string | null - last_evaluation_date?: string | null - parent_concerns?: string | null - plan_id: string - student_strengths?: string | null - updated_at?: string - } - Update: { - confidential_notes?: string | null - consent_date?: string | null - eligibility_category?: string | null - eligibility_notes?: string | null - evaluation_summary?: string | null - last_evaluation_date?: string | null - parent_concerns?: string | null - plan_id?: string - student_strengths?: string | null - updated_at?: string - } - Relationships: [ - { - foreignKeyName: "plan_details_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: true - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - plan_documents: { - Row: { - created_at: string - file_path: string - id: string - plan_id: string - title: string | null - uploaded_by: string | null - } - Insert: { - created_at?: string - file_path: string - id?: string - plan_id: string - title?: string | null - uploaded_by?: string | null - } - Update: { - created_at?: string - file_path?: string - id?: string - plan_id?: string - title?: string | null - uploaded_by?: string | null - } - Relationships: [ - { - foreignKeyName: "plan_documents_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: false - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - plan_goal_progress: { - Row: { - created_at: string - date: string - goal_id: string - id: string - narrative: string | null - recorded_by: string | null - value: number | null - } - Insert: { - created_at?: string - date?: string - goal_id: string - id?: string - narrative?: string | null - recorded_by?: string | null - value?: number | null - } - Update: { - created_at?: string - date?: string - goal_id?: string - id?: string - narrative?: string | null - recorded_by?: string | null - value?: number | null - } - Relationships: [ - { - foreignKeyName: "plan_goal_progress_goal_id_fkey" - columns: ["goal_id"] - isOneToOne: false - referencedRelation: "plan_goals" - referencedColumns: ["id"] - }, - ] - } - plan_goals: { - Row: { - area: string | null - baseline: string | null - created_at: string - id: string - plan_id: string - sort_order: number - statement: string - status: Database["public"]["Enums"]["plan_goal_status"] - target_criteria: string | null - target_date: string | null - target_value: number | null - unit: string | null - updated_at: string - } - Insert: { - area?: string | null - baseline?: string | null - created_at?: string - id?: string - plan_id: string - sort_order?: number - statement: string - status?: Database["public"]["Enums"]["plan_goal_status"] - target_criteria?: string | null - target_date?: string | null - target_value?: number | null - unit?: string | null - updated_at?: string - } - Update: { - area?: string | null - baseline?: string | null - created_at?: string - id?: string - plan_id?: string - sort_order?: number - statement?: string - status?: Database["public"]["Enums"]["plan_goal_status"] - target_criteria?: string | null - target_date?: string | null - target_value?: number | null - unit?: string | null - updated_at?: string - } - Relationships: [ - { - foreignKeyName: "plan_goals_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: false - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - plan_meeting_attendees: { - Row: { - attended: boolean - created_at: string - id: string - meeting_id: string - name: string - team_role: string | null - user_id: string | null - } - Insert: { - attended?: boolean - created_at?: string - id?: string - meeting_id: string - name: string - team_role?: string | null - user_id?: string | null - } - Update: { - attended?: boolean - created_at?: string - id?: string - meeting_id?: string - name?: string - team_role?: string | null - user_id?: string | null - } - Relationships: [ - { - foreignKeyName: "plan_meeting_attendees_meeting_id_fkey" - columns: ["meeting_id"] - isOneToOne: false - referencedRelation: "plan_meetings" - referencedColumns: ["id"] - }, - ] - } - plan_meetings: { - Row: { - created_at: string - created_by: string | null - id: string - location: string | null - meeting_date: string - meeting_type: Database["public"]["Enums"]["plan_meeting_type"] - notes: string | null - outcome: string | null - plan_id: string - } - Insert: { - created_at?: string - created_by?: string | null - id?: string - location?: string | null - meeting_date: string - meeting_type?: Database["public"]["Enums"]["plan_meeting_type"] - notes?: string | null - outcome?: string | null - plan_id: string - } - Update: { - created_at?: string - created_by?: string | null - id?: string - location?: string | null - meeting_date?: string - meeting_type?: Database["public"]["Enums"]["plan_meeting_type"] - notes?: string | null - outcome?: string | null - plan_id?: string - } - Relationships: [ - { - foreignKeyName: "plan_meetings_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: false - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - plan_services: { - Row: { - created_at: string - delivery: string | null - end_date: string | null - id: string - location: string | null - minutes_per_session: number | null - period: string - plan_id: string - provider_id: string | null - provider_name: string | null - service_type: string - sessions_per_period: number | null - start_date: string | null - } - Insert: { - created_at?: string - delivery?: string | null - end_date?: string | null - id?: string - location?: string | null - minutes_per_session?: number | null - period?: string - plan_id: string - provider_id?: string | null - provider_name?: string | null - service_type: string - sessions_per_period?: number | null - start_date?: string | null - } - Update: { - created_at?: string - delivery?: string | null - end_date?: string | null - id?: string - location?: string | null - minutes_per_session?: number | null - period?: string - plan_id?: string - provider_id?: string | null - provider_name?: string | null - service_type?: string - sessions_per_period?: number | null - start_date?: string | null - } - Relationships: [ - { - foreignKeyName: "plan_services_plan_id_fkey" - columns: ["plan_id"] - isOneToOne: false - referencedRelation: "student_plans" - referencedColumns: ["id"] - }, - ] - } - profiles: { - Row: { - created_at: string - email: string | null - full_name: string | null - id: string - phone: string | null - updated_at: string - } - Insert: { - created_at?: string - email?: string | null - full_name?: string | null - id: string - phone?: string | null - updated_at?: string - } - Update: { - created_at?: string - email?: string | null - full_name?: string | null - id?: string - phone?: string | null - updated_at?: string - } - Relationships: [] - } - student_curriculum_logins: { - Row: { - created_at: string - id: string - parent_account: string | null - parent_password: string | null - student_id: string - student_login: string | null - student_password: string | null - website: string | null - } - Insert: { - created_at?: string - id?: string - parent_account?: string | null - parent_password?: string | null - student_id: string - student_login?: string | null - student_password?: string | null - website?: string | null - } - Update: { - created_at?: string - id?: string - parent_account?: string | null - parent_password?: string | null - student_id?: string - student_login?: string | null - student_password?: string | null - website?: string | null - } - Relationships: [ - { - foreignKeyName: "student_curriculum_logins_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - student_guardians: { - Row: { - address: string | null - city: string | null - created_at: string - email: string | null - employer: string | null - full_name: string - id: string - is_primary: boolean - phone: string | null - relationship: string | null - state: string | null - student_id: string - zip: string | null - } - Insert: { - address?: string | null - city?: string | null - created_at?: string - email?: string | null - employer?: string | null - full_name: string - id?: string - is_primary?: boolean - phone?: string | null - relationship?: string | null - state?: string | null - student_id: string - zip?: string | null - } - Update: { - address?: string | null - city?: string | null - created_at?: string - email?: string | null - employer?: string | null - full_name?: string - id?: string - is_primary?: boolean - phone?: string | null - relationship?: string | null - state?: string | null - student_id?: string - zip?: string | null - } - Relationships: [ - { - foreignKeyName: "student_guardians_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - student_plans: { - Row: { - case_manager_id: string | null - created_at: string - created_by: string | null - effective_date: string | null - end_date: string | null - id: string - next_annual_review_date: string | null - next_reevaluation_date: string | null - plan_type: Database["public"]["Enums"]["plan_type"] - status: Database["public"]["Enums"]["plan_status"] - student_id: string - updated_at: string - } - Insert: { - case_manager_id?: string | null - created_at?: string - created_by?: string | null - effective_date?: string | null - end_date?: string | null - id?: string - next_annual_review_date?: string | null - next_reevaluation_date?: string | null - plan_type: Database["public"]["Enums"]["plan_type"] - status?: Database["public"]["Enums"]["plan_status"] - student_id: string - updated_at?: string - } - Update: { - case_manager_id?: string | null - created_at?: string - created_by?: string | null - effective_date?: string | null - end_date?: string | null - id?: string - next_annual_review_date?: string | null - next_reevaluation_date?: string | null - plan_type?: Database["public"]["Enums"]["plan_type"] - status?: Database["public"]["Enums"]["plan_status"] - student_id?: string - updated_at?: string - } - Relationships: [ - { - foreignKeyName: "student_plans_student_id_fkey" - columns: ["student_id"] - isOneToOne: false - referencedRelation: "students" - referencedColumns: ["id"] - }, - ] - } - students: { - Row: { - agreement_signed_by: string | null - agreement_signed_date: string | null - allergies: string | null - backup_transport_plan: string | null - chronic_conditions: string | null - class_id: string | null - created_at: string - custody_agreement: string | null - daily_tuition_cents: number | null - disciplinary_history: string | null - dismissal_methods: string[] - dismissal_other: string | null - dob: string | null - first_name: string - gender: string | null - grade_level: string | null - home_ed_eval_due: string | null - id: string - interests: string | null - last_name: string - notes: string | null - other_info: string | null - photo_path: string | null - photo_release: boolean - physician_phone: string | null - portfolio_keeper: string | null - preferred_start_date: string | null - previous_schools: string | null - primary_physician: string | null - special_needs: string | null - updated_at: string - user_id: string | null - } - Insert: { - agreement_signed_by?: string | null - agreement_signed_date?: string | null - allergies?: string | null - backup_transport_plan?: string | null - chronic_conditions?: string | null - class_id?: string | null - created_at?: string - custody_agreement?: string | null - daily_tuition_cents?: number | null - disciplinary_history?: string | null - dismissal_methods?: string[] - dismissal_other?: string | null - dob?: string | null - first_name: string - gender?: string | null - grade_level?: string | null - home_ed_eval_due?: string | null - id?: string - interests?: string | null - last_name: string - notes?: string | null - other_info?: string | null - photo_path?: string | null - photo_release?: boolean - physician_phone?: string | null - portfolio_keeper?: string | null - preferred_start_date?: string | null - previous_schools?: string | null - primary_physician?: string | null - special_needs?: string | null - updated_at?: string - user_id?: string | null - } - Update: { - agreement_signed_by?: string | null - agreement_signed_date?: string | null - allergies?: string | null - backup_transport_plan?: string | null - chronic_conditions?: string | null - class_id?: string | null - created_at?: string - custody_agreement?: string | null - daily_tuition_cents?: number | null - disciplinary_history?: string | null - dismissal_methods?: string[] - dismissal_other?: string | null - dob?: string | null - first_name?: string - gender?: string | null - grade_level?: string | null - home_ed_eval_due?: string | null - id?: string - interests?: string | null - last_name?: string - notes?: string | null - other_info?: string | null - photo_path?: string | null - photo_release?: boolean - physician_phone?: string | null - portfolio_keeper?: string | null - preferred_start_date?: string | null - previous_schools?: string | null - primary_physician?: string | null - special_needs?: string | null - updated_at?: string - user_id?: string | null - } - Relationships: [ - { - foreignKeyName: "students_class_id_fkey" - columns: ["class_id"] - isOneToOne: false - referencedRelation: "classes" - referencedColumns: ["id"] - }, - ] - } - thread_participants: { - Row: { - id: string - thread_id: string - user_id: string - } - Insert: { - id?: string - thread_id: string - user_id: string - } - Update: { - id?: string - thread_id?: string - user_id?: string - } - Relationships: [ - { - foreignKeyName: "thread_participants_thread_id_fkey" - columns: ["thread_id"] - isOneToOne: false - referencedRelation: "message_threads" - referencedColumns: ["id"] - }, - ] - } - user_mailboxes: { - Row: { - created_at: string - created_by: string | null - email: string - last_verified_at: string | null - secret_ciphertext: string - secret_iv: string - secret_tag: string - updated_at: string - user_id: string - } - Insert: { - created_at?: string - created_by?: string | null - email: string - last_verified_at?: string | null - secret_ciphertext: string - secret_iv: string - secret_tag: string - updated_at?: string - user_id: string - } - Update: { - created_at?: string - created_by?: string | null - email?: string - last_verified_at?: string | null - secret_ciphertext?: string - secret_iv?: string - secret_tag?: string - updated_at?: string - user_id?: string - } - Relationships: [] - } - user_roles: { - Row: { - created_at: string - id: string - role: Database["public"]["Enums"]["app_role"] - user_id: string - } - Insert: { - created_at?: string - id?: string - role: Database["public"]["Enums"]["app_role"] - user_id: string - } - Update: { - created_at?: string - id?: string - role?: Database["public"]["Enums"]["app_role"] - user_id?: string - } - Relationships: [] - } - } - Views: { - [_ in never]: never - } - Functions: { - can_edit_goal: { Args: { _goal: string }; Returns: boolean } - can_edit_meeting: { Args: { _meeting: string }; Returns: boolean } - can_edit_plan: { Args: { _plan: string }; Returns: boolean } - can_view_goal: { Args: { _goal: string }; Returns: boolean } - can_view_meeting: { Args: { _meeting: string }; Returns: boolean } - can_view_plan_full: { Args: { _plan: string }; Returns: boolean } - can_view_plan_impl: { Args: { _plan: string }; Returns: boolean } - current_user_has_role: { - Args: { _role: Database["public"]["Enums"]["app_role"] } - Returns: boolean - } - has_role: { - Args: { - _role: Database["public"]["Enums"]["app_role"] - _user_id: string - } - Returns: boolean - } - is_parent_of: { Args: { _student: string }; Returns: boolean } - is_student_account: { Args: { _student: string }; Returns: boolean } - is_thread_participant: { Args: { _thread: string }; Returns: boolean } - teaches_class: { Args: { _class: string }; Returns: boolean } - teaches_student: { Args: { _student: string }; Returns: boolean } - } - Enums: { - app_role: "admin" | "teacher" | "parent" | "student" - attendance_status: "present" | "absent" | "late" | "excused" - ledger_category: "tuition" | "late_pickup" | "activity" | "other" - ledger_kind: "charge" | "payment" - plan_goal_status: - | "not_started" - | "in_progress" - | "met" - | "not_met" - | "discontinued" - plan_meeting_type: - | "initial" - | "annual_review" - | "reevaluation" - | "eligibility" - | "amendment" - | "other" - plan_status: "draft" | "active" | "archived" - plan_type: "iep" | "section_504" - } - CompositeTypes: { - [_ in never]: never - } - } -} - -type DatabaseWithoutInternals = Omit - -type DefaultSchema = DatabaseWithoutInternals[Extract] - -export type Tables< - DefaultSchemaTableNameOrOptions extends - | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) - | { schema: keyof DatabaseWithoutInternals }, - TableName extends DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals - } - ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & - DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) - : never = never, -> = DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals -} - ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & - DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends { - Row: infer R - } - ? R - : never - : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & - DefaultSchema["Views"]) - ? (DefaultSchema["Tables"] & - DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends { - Row: infer R - } - ? R - : never - : never - -export type TablesInsert< - DefaultSchemaTableNameOrOptions extends - | keyof DefaultSchema["Tables"] - | { schema: keyof DatabaseWithoutInternals }, - TableName extends DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals - } - ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] - : never = never, -> = DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals -} - ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends { - Insert: infer I - } - ? I - : never - : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] - ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends { - Insert: infer I - } - ? I - : never - : never - -export type TablesUpdate< - DefaultSchemaTableNameOrOptions extends - | keyof DefaultSchema["Tables"] - | { schema: keyof DatabaseWithoutInternals }, - TableName extends DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals - } - ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] - : never = never, -> = DefaultSchemaTableNameOrOptions extends { - schema: keyof DatabaseWithoutInternals -} - ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends { - Update: infer U - } - ? U - : never - : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] - ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends { - Update: infer U - } - ? U - : never - : never - -export type Enums< - DefaultSchemaEnumNameOrOptions extends - | keyof DefaultSchema["Enums"] - | { schema: keyof DatabaseWithoutInternals }, - EnumName extends DefaultSchemaEnumNameOrOptions extends { - schema: keyof DatabaseWithoutInternals - } - ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] - : never = never, -> = DefaultSchemaEnumNameOrOptions extends { - schema: keyof DatabaseWithoutInternals -} - ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] - : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] - ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] - : never - -export type CompositeTypes< - PublicCompositeTypeNameOrOptions extends - | keyof DefaultSchema["CompositeTypes"] - | { schema: keyof DatabaseWithoutInternals }, - CompositeTypeName extends PublicCompositeTypeNameOrOptions extends { - schema: keyof DatabaseWithoutInternals - } - ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] - : never = never, -> = PublicCompositeTypeNameOrOptions extends { - schema: keyof DatabaseWithoutInternals -} - ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] - : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] - ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] - : never - -export const Constants = { - graphql_public: { - Enums: {}, - }, - public: { - Enums: { - app_role: ["admin", "teacher", "parent", "student"], - attendance_status: ["present", "absent", "late", "excused"], - ledger_category: ["tuition", "late_pickup", "activity", "other"], - ledger_kind: ["charge", "payment"], - plan_goal_status: [ - "not_started", - "in_progress", - "met", - "not_met", - "discontinued", - ], - plan_meeting_type: [ - "initial", - "annual_review", - "reevaluation", - "eligibility", - "amendment", - "other", - ], - plan_status: ["draft", "active", "archived"], - plan_type: ["iep", "section_504"], - }, - }, -} as const