This commit is contained in:
Jun-te Kim 2026-04-16 16:59:30 +00:00
parent c4e199deaa
commit 224a8ad696
4 changed files with 6430 additions and 0 deletions

View file

@ -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, {

View 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
);

File diff suppressed because it is too large Load diff

View file

@ -1191,6 +1191,13 @@
"when": 1776351792028,
"tag": "0169_freezing_moonstone",
"breakpoints": true
},
{
"idx": 170,
"version": "7",
"when": 1776357524564,
"tag": "0170_furry_moonstone",
"breakpoints": true
}
]
}