From e904e9634548e47d611bdcbb88d7b180b927fd5f Mon Sep 17 00:00:00 2001
From: JustZvan <justzvan@justzvan.xyz>
Date: Fri, 6 Feb 2026 12:16:40 +0100
Subject: feat: initial commit!

---
 drizzle/20260115153715_little_legion/migration.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 drizzle/20260115153715_little_legion/migration.sql

(limited to 'drizzle/20260115153715_little_legion/migration.sql')

diff --git a/drizzle/20260115153715_little_legion/migration.sql b/drizzle/20260115153715_little_legion/migration.sql
new file mode 100644
index 0000000..adffaea
--- /dev/null
+++ b/drizzle/20260115153715_little_legion/migration.sql
@@ -0,0 +1,16 @@
+CREATE TABLE "alerts" (
+	"id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "alerts_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1),
+	"device_id" integer NOT NULL,
+	"parent_id" integer NOT NULL,
+	"category" varchar(50),
+	"title" varchar(255) NOT NULL,
+	"message" text NOT NULL,
+	"summary" text NOT NULL,
+	"confidence" integer NOT NULL,
+	"packageName" varchar(255),
+	"timestamp" integer NOT NULL,
+	"read" boolean DEFAULT false NOT NULL
+);
+--> statement-breakpoint
+ALTER TABLE "users" ADD COLUMN "push_tokens" text[] DEFAULT '{}'::text[];--> statement-breakpoint
+ALTER TABLE "users" DROP COLUMN "push_token";
\ No newline at end of file
-- 
cgit v1.2.3

