bug: fix build issues, fix datatypes
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "price_index" ALTER COLUMN "lowest_price" SET DATA TYPE DECIMAL(13,9);
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "raw_vendor_prices" ALTER COLUMN "usd_per_million" SET DATA TYPE DECIMAL(13,9);
|
||||
@@ -17,7 +17,7 @@ model VendorPrice {
|
||||
sellerName String? @map("seller_name")
|
||||
usdPrice Decimal @map("usd_price") @db.Decimal(12, 2)
|
||||
auecAmount BigInt @map("auec_amount")
|
||||
usdPerMillion Decimal @map("usd_per_million") @db.Decimal(12, 8)
|
||||
usdPerMillion Decimal @map("usd_per_million") @db.Decimal(13, 9)
|
||||
deliveryTime String? @map("delivery_time")
|
||||
url String
|
||||
|
||||
@@ -31,7 +31,7 @@ model VendorPrice {
|
||||
model PriceIndex {
|
||||
id String @id @default(uuid())
|
||||
timestamp DateTime @default(now()) @db.Timestamptz(3)
|
||||
lowestPrice Decimal @map("lowest_price") @db.Decimal(12, 8)
|
||||
lowestPrice Decimal @map("lowest_price") @db.Decimal(13, 9)
|
||||
vendor String
|
||||
sellerName String? @map("seller_name")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user