feat: Link transations with payment methods

This commit is contained in:
Ahmed Bouhuolia
2024-09-15 19:42:43 +02:00
parent 542e61dbfc
commit 430cf19533
21 changed files with 581 additions and 8 deletions

View File

@@ -0,0 +1,27 @@
import { Model } from 'objection';
export class PaymentIntegration extends Model {
static get tableName() {
return 'payment_integrations';
}
static get idColumn() {
return 'id';
}
static get jsonSchema() {
return {
type: 'object',
required: ['service', 'enable'],
properties: {
id: { type: 'integer' },
service: { type: 'string' },
enable: { type: 'boolean' },
accountId: { type: 'string' },
options: { type: 'object' },
createdAt: { type: 'string', format: 'date-time' },
updatedAt: { type: 'string', format: 'date-time' },
},
};
}
}