feat: integrate Stripe payment to invoices

This commit is contained in:
Ahmed Bouhuolia
2024-09-18 19:24:01 +02:00
parent df706d2573
commit 4665f529e6
24 changed files with 540 additions and 80 deletions

View File

@@ -6,9 +6,9 @@ exports.up = function (knex) {
return knex.schema.createTable('payment_integrations', (table) => {
table.increments('id');
table.string('service');
table.string('name');
table.string('name');
table.string('slug');
table.boolean('enable');
table.boolean('enable').defaultTo(true);
table.string('account_id');
table.json('options');
table.timestamps();

View File

@@ -7,8 +7,14 @@ exports.up = function (knex) {
table.increments('id');
table.integer('reference_id').unsigned();
table.string('reference_type');
table.integer('integration_id');
table.json('options');
table
.integer('payment_integration_id')
.unsigned()
.index()
.references('id')
.inTable('payment_integrations');
table.boolean('enable').defaultTo(false);
table.json('options').nullable();
});
};