diff --git a/supabase/functions/_shared/database.types.ts b/supabase/functions/_shared/database.types.ts index e166d6f..35f2364 100644 --- a/supabase/functions/_shared/database.types.ts +++ b/supabase/functions/_shared/database.types.ts @@ -1,4 +1,4 @@ -export type Json = +export type Json = | string | number | boolean @@ -7,30 +7,10 @@ | Json[] export type Database = { - 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 - } + // Allows to automatically instantiate createClient with right options + // instead of createClient(URL, KEY) + __InternalSupabase: { + PostgrestVersion: "14.1" } public: { Tables: { @@ -1568,9 +1548,6 @@ export type CompositeTypes< : never export const Constants = { - graphql_public: { - Enums: {}, - }, public: { Enums: { estado_asignatura: ["borrador", "revisada", "aprobada", "generando"], @@ -1630,4 +1607,3 @@ export const Constants = { }, }, } as const - diff --git a/supabase/seed.sql b/supabase/seed.sql index 59464dd..8e2b112 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -4,7 +4,7 @@ SET session_replication_role = replica; -- PostgreSQL database dump -- --- \restrict cjN2YYS2KAOqreW9LqhjpXqJRNIzCaVPnayxuuqhyMC8b4dch1tGVQLneKb1Oid +-- \restrict JtpN0pcWSvQQiDMZpeDxQumqbjV0WVDxKRJ4t9jRbYXAiev2sg7oCOaOGrRzVfV -- Dumped from database version 17.6 -- Dumped by pg_dump version 17.6 @@ -2893,6 +2893,6 @@ SELECT pg_catalog.setval('"supabase_functions"."hooks_id_seq"', 11, true); -- PostgreSQL database dump complete -- --- \unrestrict cjN2YYS2KAOqreW9LqhjpXqJRNIzCaVPnayxuuqhyMC8b4dch1tGVQLneKb1Oid +-- \unrestrict JtpN0pcWSvQQiDMZpeDxQumqbjV0WVDxKRJ4t9jRbYXAiev2sg7oCOaOGrRzVfV RESET ALL;