mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
uploaded files table
This commit is contained in:
parent
23b1bf5ebc
commit
e9ce7896e5
1 changed files with 14 additions and 0 deletions
14
src/app/db/schema/uploaded_files.ts
Normal file
14
src/app/db/schema/uploaded_files.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { bigint, bigserial, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
||||
|
||||
export const uploadedFiles = pgTable(
|
||||
"uploaded_files",
|
||||
{
|
||||
id: bigserial("id", { mode: "bigint" }).primaryKey(),
|
||||
s3FileUri: text("s3_file_uri").notNull(),
|
||||
s3UploadTimestamp: timestamp("s3_upload_timestamp", {
|
||||
withTimezone: true
|
||||
}).notNull(),
|
||||
landlordPropertyId: text("landlord_property_id").notNull(),
|
||||
uprn: bigint("uprn", { mode: "bigint" })
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Reference in a new issue