diff --git a/src/app/db/schema/uploaded_files.ts b/src/app/db/schema/uploaded_files.ts new file mode 100644 index 0000000..1ecb0a2 --- /dev/null +++ b/src/app/db/schema/uploaded_files.ts @@ -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" }) + } +); \ No newline at end of file