Skip to content

Commit

Permalink
Add overlays and some UI clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cr0wst committed Feb 3, 2025
1 parent 6a403c5 commit 5927e5d
Show file tree
Hide file tree
Showing 16 changed files with 2,268 additions and 387 deletions.
21 changes: 21 additions & 0 deletions drizzle/0005_wise_starfox.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS "airspace_overlay_components" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"group_id" uuid NOT NULL,
"name" text,
"color" text,
"geojson" jsonb,
"settings" jsonb
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "airspace_overlay_groups" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text,
"is_published" boolean DEFAULT false NOT NULL,
"created_at" timestamp DEFAULT now()
);
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "airspace_overlay_components" ADD CONSTRAINT "airspace_overlay_components_group_id_airspace_overlay_groups_id_fk" FOREIGN KEY ("group_id") REFERENCES "public"."airspace_overlay_groups"("id") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit 5927e5d

Please sign in to comment.