mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
feat: stripe integration
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `token_balance` on the `users` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" DROP COLUMN "token_balance",
|
||||
ADD COLUMN "ai_balance" INTEGER NOT NULL DEFAULT 0,
|
||||
ADD COLUMN "stripe_customer_id" TEXT;
|
||||
@@ -24,12 +24,13 @@ model User {
|
||||
transactions Transaction[]
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
stripeCustomerId String? @map("stripe_customer_id")
|
||||
membershipPlan String? @map("membership_plan")
|
||||
membershipExpiresAt DateTime? @map("membership_expires_at")
|
||||
emailVerified Boolean @default(false) @map("is_email_verified")
|
||||
storageUsed Int @default(0) @map("storage_used")
|
||||
storageLimit Int @default(-1) @map("storage_limit")
|
||||
tokenBalance Int @default(0) @map("token_balance")
|
||||
aiBalance Int @default(0) @map("ai_balance")
|
||||
accounts Account[]
|
||||
sessions Session[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user