mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add initial Push Notifications support
This commit is contained in:
parent
acd2bcb469
commit
d096ab830c
21 changed files with 3301 additions and 3 deletions
14
drizzle/migrations/0040_good_nocturne.sql
Normal file
14
drizzle/migrations/0040_good_nocturne.sql
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
CREATE TABLE "PushSubscriptions" (
|
||||
"id" uuid PRIMARY KEY DEFAULT uuid_generate_v7() NOT NULL,
|
||||
"endpoint" text NOT NULL,
|
||||
"public_key" text NOT NULL,
|
||||
"auth_secret" text NOT NULL,
|
||||
"alerts" jsonb NOT NULL,
|
||||
"policy" text NOT NULL,
|
||||
"created_at" timestamp(3) DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp(3) DEFAULT now() NOT NULL,
|
||||
"tokenId" uuid NOT NULL,
|
||||
CONSTRAINT "PushSubscriptions_tokenId_unique" UNIQUE("tokenId")
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "PushSubscriptions" ADD CONSTRAINT "PushSubscriptions_tokenId_Tokens_id_fk" FOREIGN KEY ("tokenId") REFERENCES "public"."Tokens"("id") ON DELETE cascade ON UPDATE cascade;
|
||||
2323
drizzle/migrations/meta/0040_snapshot.json
Normal file
2323
drizzle/migrations/meta/0040_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -281,6 +281,13 @@
|
|||
"when": 1734555117380,
|
||||
"tag": "0039_special_serpent_society",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 40,
|
||||
"version": "7",
|
||||
"when": 1735776034097,
|
||||
"tag": "0040_good_nocturne",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue