From 60f442dafbe5583d1a91b511b25986e6e04b8cd2 Mon Sep 17 00:00:00 2001 From: Huakun Shen <huakun.shen@huakunshen.com> Date: Wed, 19 Feb 2025 03:06:07 -0500 Subject: [PATCH] feat: add cache table to supabase --- deno.lock | 8 ++++++++ packages/supabase/src/database.types.ts | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/deno.lock b/deno.lock index ea2e1a4..b32769c 100644 --- a/deno.lock +++ b/deno.lock @@ -51,6 +51,7 @@ "npm:@tauri-apps/api@^2.2.0": "2.2.0", "npm:@tauri-apps/cli@^2.2.2": "2.2.7", "npm:@tauri-apps/cli@^2.2.7": "2.2.7", + "npm:@tauri-apps/plugin-autostart@^2.2.0": "2.2.0", "npm:@tauri-apps/plugin-deep-link@^2.2.0": "2.2.0", "npm:@tauri-apps/plugin-dialog@^2.2.0": "2.2.0", "npm:@tauri-apps/plugin-fs@^2.2.0": "2.2.0", @@ -5025,6 +5026,12 @@ "@tauri-apps/cli-win32-x64-msvc" ] }, + "@tauri-apps/plugin-autostart@2.2.0": { + "integrity": "sha512-TzVcDZdOvdot0avkpstUWJKKEl4cyxLpFB9DZZRW5zH8k+Bv8IVJmO0zyYuw+7oKlGdHOINbD/7Je7GHMViw5w==", + "dependencies": [ + "@tauri-apps/api@2.2.0" + ] + }, "@tauri-apps/plugin-deep-link@2.2.0": { "integrity": "sha512-H6mkxr2KZ3XJcKL44tiq6cOjCw9DL8OgU1xjn3j26Qsn+H/roPFiyhR7CHuB8Ar+sQFj4YVlfmJwtBajK2FETQ==", "dependencies": [ @@ -15068,6 +15075,7 @@ "npm:@tanstack/table-core@^8.20.5", "npm:@tauri-apps/api@^2.1.1", "npm:@tauri-apps/cli@^2.2.7", + "npm:@tauri-apps/plugin-autostart@^2.2.0", "npm:@tauri-apps/plugin-shell@^2.2.0", "npm:@tauri-apps/plugin-stronghold@^2.2.0", "npm:@types/bun@latest", diff --git a/packages/supabase/src/database.types.ts b/packages/supabase/src/database.types.ts index b80cc87..8cd7968 100644 --- a/packages/supabase/src/database.types.ts +++ b/packages/supabase/src/database.types.ts @@ -3,6 +3,30 @@ export type Json = string | number | boolean | null | { [key: string]: Json | un export type Database = { public: { Tables: { + cache: { + Row: { + created_at: string + data: Json | null + expiry_date: string | null + id: number + key: string + } + Insert: { + created_at?: string + data?: Json | null + expiry_date?: string | null + id?: number + key: string + } + Update: { + created_at?: string + data?: Json | null + expiry_date?: string | null + id?: number + key?: string + } + Relationships: [] + } events: { Row: { created_at: string