Skip to content

Commit

Permalink
feat: rename rent table and set 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 0e9965a commit c62f0d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "rent" RENAME COLUMN "ladcode" TO "lad_code";
ALTER TABLE "rent" RENAME COLUMN "monthlymeanrent" TO "monthly_mean_rent";
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "rent" ALTER COLUMN "itl3" SET NOT NULL,
ALTER COLUMN "lad_code" SET NOT NULL,
ALTER COLUMN "region" SET NOT NULL,
ALTER COLUMN "monthly_mean_rent" SET NOT NULL;
8 changes: 4 additions & 4 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ model PricesPaid {

model Rent {
id Int @id @default(autoincrement())
itl3 String? @db.VarChar(250)
ladCode String? @map("ladcode") @db.VarChar(250)
region String? @db.VarChar(250)
monthlyMeanRent Float? @map("monthlymeanrent")
itl3 String @db.VarChar(250)
ladCode String @map("lad_code") @db.VarChar(250)
region String @db.VarChar(250)
monthlyMeanRent Float @map("monthly_mean_rent")
@@map("rent")
}
Expand Down

0 comments on commit c62f0d7

Please sign in to comment.