add code chunking to vite.config.ts

This commit is contained in:
Amruth Pillai
2024-05-07 11:45:33 +02:00
parent e21430a421
commit e3785030e1
11 changed files with 616 additions and 707 deletions

View File

@ -0,0 +1,8 @@
-- Migrate the `Secrets` table to make the `lastSignedIn` column non-nullable
UPDATE "Secrets"
SET "lastSignedIn" = CURRENT_TIMESTAMP
WHERE "lastSignedIn" IS NULL;
-- AlterTable
ALTER TABLE "Secrets" ALTER COLUMN "lastSignedIn" SET NOT NULL,
ALTER COLUMN "lastSignedIn" SET DEFAULT CURRENT_TIMESTAMP;

View File

@ -35,16 +35,16 @@ model User {
}
model Secrets {
id String @id @default(cuid())
id String @id @default(cuid())
password String?
lastSignedIn DateTime?
lastSignedIn DateTime @default(now())
verificationToken String?
twoFactorSecret String?
twoFactorBackupCodes String[] @default([])
twoFactorBackupCodes String[] @default([])
refreshToken String?
resetToken String? @unique
userId String @unique
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
resetToken String? @unique
userId String @unique
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([userId, id])
}