mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
15 lines
440 B
TypeScript
15 lines
440 B
TypeScript
exports.up = function (knex) {
|
|
return knex.schema.createTable('document_links', (table) => {
|
|
table.increments('id').primary();
|
|
table.string('model_ref').notNullable();
|
|
table.string('model_id').notNullable();
|
|
table.integer('document_id').unsigned();
|
|
table.datetime('expires_at').nullable();
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.dropTableIfExists('document_links');
|
|
};
|