mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
uplaod
This commit is contained in:
parent
c4e199deaa
commit
224a8ad696
4 changed files with 6430 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import { subTasks } from "@/app/db/schema/tasks/subtask";
|
|||
import * as CrmSchema from "@/app/db/schema/crm/hubspot_deal_table";
|
||||
import * as UploadedFilesSchema from "@/app/db/schema/uploaded_files";
|
||||
import * as PortfolioOrgSchema from "@/app/db/schema/portfolio_organisation";
|
||||
import * as BulkAddressUploadsSchema from "@/app/db/schema/bulk_address_uploads";
|
||||
|
||||
export const pool = new Pool({
|
||||
host: process.env.DB_HOST,
|
||||
|
|
@ -41,6 +42,7 @@ const schema = {
|
|||
...CrmSchema,
|
||||
...UploadedFilesSchema,
|
||||
...PortfolioOrgSchema,
|
||||
...BulkAddressUploadsSchema,
|
||||
};
|
||||
|
||||
export const db = drizzle(pool, {
|
||||
|
|
|
|||
11
src/app/db/migrations/0170_furry_moonstone.sql
Normal file
11
src/app/db/migrations/0170_furry_moonstone.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
CREATE TABLE "bulk_address_uploads" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"portfolio_id" text NOT NULL,
|
||||
"user_id" text NOT NULL,
|
||||
"s3_bucket" text NOT NULL,
|
||||
"s3_key" text NOT NULL,
|
||||
"filename" text NOT NULL,
|
||||
"status" text DEFAULT 'ready_for_processing' NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
6410
src/app/db/migrations/meta/0170_snapshot.json
Normal file
6410
src/app/db/migrations/meta/0170_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1191,6 +1191,13 @@
|
|||
"when": 1776351792028,
|
||||
"tag": "0169_freezing_moonstone",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 170,
|
||||
"version": "7",
|
||||
"when": 1776357524564,
|
||||
"tag": "0170_furry_moonstone",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue