Skip to content

Commit

Permalink
feat: make social_rent_earnings 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 8be09fb commit 46bd552
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

-- AlterTable
ALTER TABLE "social_rent_earnings" ALTER COLUMN "county" SET NOT NULL,
ALTER COLUMN "itl3" SET NOT NULL,
ALTER COLUMN "earnings_per_week" SET NOT NULL;
6 changes: 3 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ model SocialRentAdjustments {

model SocialRentEarnings {
id Int @id @default(autoincrement())
county String? @db.VarChar(250)
itl3 String? @db.VarChar(250)
earningsPerWeek Float? @map("earnings_per_week")
county String @db.VarChar(250)
itl3 String @db.VarChar(250)
earningsPerWeek Float @map("earnings_per_week")
@@map("social_rent_earnings")
}
Expand Down

0 comments on commit 46bd552

Please sign in to comment.