mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
make property_id and portfolio_id foreign keys nullable
This commit is contained in:
parent
0ba5d65d7f
commit
fead8582c6
1 changed files with 2 additions and 2 deletions
|
|
@ -416,10 +416,10 @@ export const epcProperty = pgTable(
|
|||
{
|
||||
id: bigserial("id", { mode: "bigint" }).primaryKey(),
|
||||
propertyId: bigint("property_id", { mode: "bigint" })
|
||||
.notNull()
|
||||
// .notNull()
|
||||
.references(() => property.id),
|
||||
portfolioId: bigint("portfolio_id", { mode: "bigint" })
|
||||
.notNull()
|
||||
// .notNull()
|
||||
.references(() => portfolio.id),
|
||||
|
||||
// Identity / admin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue