IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

0005_google_drive.sql

Buka raw
CREATE TABLE IF NOT EXISTS "files_google_drive_tokens" (
  "id" text PRIMARY KEY NOT NULL,
  "email" text NOT NULL,
  "display_name" text,
  "access_token_ciphertext" text NOT NULL,
  "access_token_iv" text NOT NULL,
  "access_token_tag" text NOT NULL,
  "refresh_token_ciphertext" text,
  "refresh_token_iv" text,
  "refresh_token_tag" text,
  "expires_at" timestamp with time zone,
  "created_at" timestamp with time zone DEFAULT now() NOT NULL,
  "updated_at" timestamp with time zone DEFAULT now() NOT NULL
);

CREATE UNIQUE INDEX IF NOT EXISTS "files_google_drive_tokens_email_idx" ON "files_google_drive_tokens" ("email");
CREATE INDEX IF NOT EXISTS "files_google_drive_tokens_created_at_idx" ON "files_google_drive_tokens" ("created_at");
byte
746
baris
18
Jenis
sql
Commit terakhir
16 Oktober 2026