feat: getting presigned url of the uploaded attachment

This commit is contained in:
Ahmed Bouhuolia
2024-05-29 16:16:08 +02:00
parent e7871e34a9
commit ceb133e29a
7 changed files with 124 additions and 17 deletions

View File

@@ -2,7 +2,9 @@ exports.up = function (knex) {
return knex.schema.createTable('documents', (table) => {
table.increments('id').primary();
table.string('key').notNullable();
table.string('extension').notNullable();
table.string('mime_type').notNullable();
table.integer('size').unsigned().notNullable();
table.string('origin_name');
table.timestamps();
});
};