From 78d3b40fae414551218aa1711ae3974accf8dc71 Mon Sep 17 00:00:00 2001 From: Yangshun Date: Fri, 8 Aug 2025 11:36:06 +0800 Subject: [PATCH] [web] profile: add Tazapay customer ID field --- .../20250808033532_profile_tazapay/migration.sql | 2 ++ apps/web/prisma/migrations/migration_lock.toml | 4 ++-- apps/web/prisma/schema.prisma | 9 +++++---- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 apps/web/prisma/migrations/20250808033532_profile_tazapay/migration.sql diff --git a/apps/web/prisma/migrations/20250808033532_profile_tazapay/migration.sql b/apps/web/prisma/migrations/20250808033532_profile_tazapay/migration.sql new file mode 100644 index 000000000..5a92d2734 --- /dev/null +++ b/apps/web/prisma/migrations/20250808033532_profile_tazapay/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Profile" ADD COLUMN "tazapayCustomerId" TEXT; diff --git a/apps/web/prisma/migrations/migration_lock.toml b/apps/web/prisma/migrations/migration_lock.toml index 044d57cdb..fbffa92c2 100644 --- a/apps/web/prisma/migrations/migration_lock.toml +++ b/apps/web/prisma/migrations/migration_lock.toml @@ -1,3 +1,3 @@ # Please do not edit this file manually -# It should be added in your version-control system (e.g., Git) -provider = "postgresql" +# It should be added in your version-control system (i.e. Git) +provider = "postgresql" \ No newline at end of file diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prisma index 6a2e5f66b..b0ebea6d3 100644 --- a/apps/web/prisma/schema.prisma +++ b/apps/web/prisma/schema.prisma @@ -54,10 +54,11 @@ model Profile { startWorkDate DateTime? currentStatus String? - stripeCustomer String? - premium Boolean @default(false) - plan String? - mailjetContactId String? + stripeCustomer String? + tazapayCustomerId String? + premium Boolean @default(false) + plan String? + mailjetContactId String? createdAt DateTime @default(now()) @db.Timestamptz(6) updatedAt DateTime @default(now()) @updatedAt