mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-13 11:20:31 +00:00
27 lines
592 B
JavaScript
27 lines
592 B
JavaScript
exports.seed = (knex) => {
|
|
// Deletes ALL existing entries
|
|
return knex('subscription_plans')
|
|
.del()
|
|
.then(() => {
|
|
// Inserts seed entries
|
|
return knex('subscription_plans').insert([
|
|
{
|
|
name: 'Free',
|
|
slug: 'free',
|
|
price: 0,
|
|
active: true,
|
|
currency: 'USD',
|
|
},
|
|
{
|
|
name: 'Early Adaptor',
|
|
slug: 'early-adaptor',
|
|
price: 29,
|
|
active: true,
|
|
currency: 'USD',
|
|
invoice_period: 12,
|
|
invoice_interval: 'month',
|
|
},
|
|
]);
|
|
});
|
|
};
|