split s3 uri into bucket and key

This commit is contained in:
Daniel Roth 2026-03-26 15:02:08 +00:00
parent f8870fea6e
commit f1bbad9ceb

View file

@ -4,7 +4,8 @@ export const uploadedFiles = pgTable(
"uploaded_files",
{
id: bigserial("id", { mode: "bigint" }).primaryKey(),
s3FileUri: text("s3_file_uri").notNull(),
s3FileBucket: text("s3_file_bucket").notNull(),
s3FileKey: text("s3_file_key").notNull(),
s3UploadTimestamp: timestamp("s3_upload_timestamp", {
withTimezone: true
}).notNull(),