make unitPrice a float

This commit is contained in:
m5r 2021-10-24 23:55:37 +02:00
parent 4facb32e74
commit 24ce9d4a62
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "Subscription" ALTER COLUMN "unitPrice" SET DATA TYPE DOUBLE PRECISION;
-- RenameIndex
ALTER INDEX "ProcessingPhoneNumber_phoneNumberId_unique" RENAME TO "ProcessingPhoneNumber_phoneNumberId_key";

View File

@ -46,7 +46,7 @@ model Subscription {
updateUrl String
cancelUrl String
currency String
unitPrice Int
unitPrice Float
nextBillDate DateTime @db.Date
lastEventTime DateTime @db.Timestamp
cancellationEffectiveDate DateTime? @db.Date