mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-12 13:28:55 +00:00
add condition schema to db
This commit is contained in:
parent
7caada25ca
commit
521500f209
2 changed files with 8 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ import * as EnergyAssessmentsSchema from "@/app/db/schema/energy_assessments";
|
|||
import * as FundingSchema from "@/app/db/schema/funding";
|
||||
import * as Relations from "@/app/db/schema/relations";
|
||||
import * as Users from "@/app/db/schema/users";
|
||||
import * as conditionSchema from "@/app/db/schema/condition";
|
||||
|
||||
|
||||
export const pool = new Pool({
|
||||
host: process.env.DB_HOST,
|
||||
|
|
@ -31,6 +33,7 @@ const schema = {
|
|||
...EnergyAssessmentsSchema,
|
||||
...FundingSchema,
|
||||
...Users,
|
||||
...conditionSchema,
|
||||
};
|
||||
|
||||
export const db = drizzle(pool, {
|
||||
|
|
|
|||
5
src/app/db/schema/condition/index.ts
Normal file
5
src/app/db/schema/condition/index.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
export * from "./aspect_type";
|
||||
export * from "./aspect_condition";
|
||||
export * from "./element_type";
|
||||
export * from "./element";
|
||||
export * from "./property_condition_survey";
|
||||
Loading…
Add table
Reference in a new issue