feat: add Clerk Auth

This commit is contained in:
piopi 2025-01-01 12:31:18 -05:00
parent 3f9d4f94ff
commit a80db3d80a
No known key found for this signature in database
GPG key ID: E305BD1ADD33F590
19 changed files with 146 additions and 225 deletions

View file

@ -0,0 +1,18 @@
/*
Warnings:
- You are about to drop the column `password` on the `User` table. All the data in the column will be lost.
- You are about to drop the `Session` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "Session" DROP CONSTRAINT "Session_userId_fkey";
-- DropIndex
DROP INDEX "User_email_key";
-- AlterTable
ALTER TABLE "User" DROP COLUMN "password";
-- DropTable
DROP TABLE "Session";

View file

@ -0,0 +1,8 @@
/*
Warnings:
- Added the required column `clerkId` to the `User` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "User" ADD COLUMN "clerkId" TEXT NOT NULL;