uploaded files table

This commit is contained in:
Daniel Roth 2026-03-26 11:10:44 +00:00
parent 23b1bf5ebc
commit e9ce7896e5

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