mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-14 13:01:19 +00:00
feat: calculate used storage
This commit is contained in:
10
prisma/migrations/20250410130313_add_storage/migration.sql
Normal file
10
prisma/migrations/20250410130313_add_storage/migration.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `image` on the `users` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "users" DROP COLUMN "image",
|
||||
ADD COLUMN "storage_used" INTEGER DEFAULT 0,
|
||||
ADD COLUMN "token_balance" INTEGER DEFAULT 0;
|
||||
@@ -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"
|
||||
provider = "postgresql"
|
||||
|
||||
@@ -26,12 +26,11 @@ model User {
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
membershipPlan String? @map("membership_plan")
|
||||
membershipExpiresAt DateTime? @map("membership_expires_at")
|
||||
|
||||
sessions Session[]
|
||||
|
||||
emailVerified Boolean @default(false) @map("is_email_verified")
|
||||
image String?
|
||||
accounts Account[]
|
||||
emailVerified Boolean @default(false) @map("is_email_verified")
|
||||
storageUsed Int? @default(0) @map("storage_used")
|
||||
tokenBalance Int? @default(0) @map("token_balance")
|
||||
accounts Account[]
|
||||
sessions Session[]
|
||||
|
||||
@@map("users")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user