Added end to end encryption

This commit is contained in:
Aslan 2026-01-13 17:34:39 -05:00
parent 5733975aa0
commit 6f292756ed
34 changed files with 682 additions and 69 deletions

View file

@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "Session" ADD COLUMN "name" TEXT,
ADD COLUMN "sessionStorageKey" TEXT,
ADD COLUMN "userAgent" TEXT;

View file

@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `sessionStorageKey` on the `Session` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Session" DROP COLUMN "sessionStorageKey",
ADD COLUMN "storageKey" TEXT;

View file

@ -0,0 +1,9 @@
/*
Warnings:
- You are about to drop the column `storageKey` on the `Session` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Session" DROP COLUMN "storageKey",
ADD COLUMN "storageSecret" TEXT;

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Session" ADD COLUMN "refreshDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Message" ADD COLUMN "iv" TEXT;