Skip to content

Commit

Permalink
feat: make prices_paid fields required
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Dec 12, 2024
1 parent ed45f12 commit 38c9393
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 5 additions & 5 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 38c9393

Please sign in to comment.