mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
exports.up = function(knex) {
|
|
return knex.schema.createTable('subscriptions_usage', table => {
|
|
table.increments();
|
|
table.integer('user_id');
|
|
table.integer('plan_id');
|
|
|
|
table.dateTime('trial_ends_at');
|
|
|
|
table.dateTime('subscription_starts_at');
|
|
table.dateTime('subscription_ends_at');
|
|
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function(knex) {
|
|
return knex.schema.dropTableIfExists('subscriptions_usage');
|
|
};
|