Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 0 additions & 135 deletions app/api/cron/access-sync/route.ts

This file was deleted.

29 changes: 29 additions & 0 deletions drizzle/0001_perpetual_wallow.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CREATE TABLE "favicons" (
"domain_id" uuid PRIMARY KEY NOT NULL,
"url" text,
"pathname" text,
"size" integer NOT NULL,
"source" text,
"not_found" boolean DEFAULT false NOT NULL,
"upstream_status" integer,
"upstream_content_type" text,
"fetched_at" timestamp with time zone NOT NULL,
"expires_at" timestamp with time zone NOT NULL
);
--> statement-breakpoint
CREATE TABLE "screenshots" (
"domain_id" uuid PRIMARY KEY NOT NULL,
"url" text,
"pathname" text,
"width" integer NOT NULL,
"height" integer NOT NULL,
"source" text,
"not_found" boolean DEFAULT false NOT NULL,
"fetched_at" timestamp with time zone NOT NULL,
"expires_at" timestamp with time zone NOT NULL
);
--> statement-breakpoint
ALTER TABLE "favicons" ADD CONSTRAINT "favicons_domain_id_domains_id_fk" FOREIGN KEY ("domain_id") REFERENCES "public"."domains"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "screenshots" ADD CONSTRAINT "screenshots_domain_id_domains_id_fk" FOREIGN KEY ("domain_id") REFERENCES "public"."domains"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "i_favicons_expires" ON "favicons" USING btree ("expires_at");--> statement-breakpoint
CREATE INDEX "i_screenshots_expires" ON "screenshots" USING btree ("expires_at");
Loading