diff --git a/prisma/migrations/20241212123358_make_prices_paid_fields_required/migration.sql b/prisma/migrations/20241212123358_make_prices_paid_fields_required/migration.sql new file mode 100644 index 00000000..2f259db1 --- /dev/null +++ b/prisma/migrations/20241212123358_make_prices_paid_fields_required/migration.sql @@ -0,0 +1,6 @@ +-- AlterTable +ALTER TABLE "prices_paid" ALTER COLUMN "transaction_identifier" SET NOT NULL, +ALTER COLUMN "price" SET NOT NULL, +ALTER COLUMN "postcode" SET NOT NULL, +ALTER COLUMN "property_type" SET NOT NULL, +ALTER COLUMN "newbuild" SET NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 80b5d656..ee346780 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -50,11 +50,11 @@ model ItlLookup { model PricesPaid { id Int @id @default(autoincrement()) - transactionIdentifier String? @map("transaction_identifier") @db.VarChar(250) - price Float? - postcode String? @db.VarChar(250) - propertyType String? @map("property_type") @db.VarChar(250) - newBuild String? @map("newbuild") @db.VarChar(250) + transactionIdentifier String @map("transaction_identifier") @db.VarChar(250) + price Float + postcode String @db.VarChar(250) + propertyType String @map("property_type") @db.VarChar(250) + newBuild String @map("newbuild") @db.VarChar(250) @@map("prices_paid") }