From 0852fd37a85b3a1b4a96fd9b221060bf68952793 Mon Sep 17 00:00:00 2001 From: Mahen Date: Fri, 13 Feb 2026 19:33:03 +0700 Subject: [PATCH] db: update user table rows --- .../migration.sql | 12 ++++++++++++ prisma/schema.prisma | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 prisma/migrations/20260213123206_update_user_table_rows/migration.sql diff --git a/prisma/migrations/20260213123206_update_user_table_rows/migration.sql b/prisma/migrations/20260213123206_update_user_table_rows/migration.sql new file mode 100644 index 0000000..7175f3d --- /dev/null +++ b/prisma/migrations/20260213123206_update_user_table_rows/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - You are about to drop the column `birthDate` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `gender` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `location` on the `User` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "User" DROP COLUMN "birthDate", +DROP COLUMN "gender", +DROP COLUMN "location"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fb29ee8..7a65448 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -87,9 +87,6 @@ model User { image String? password String? bio String? @db.Text - location String? - birthDate DateTime? - gender UserGender? createdAt DateTime @default(now()) updatedAt DateTime @updatedAt