mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
feat: Link transations with payment methods
This commit is contained in:
27
packages/server/src/models/PaymentIntegration.ts
Normal file
27
packages/server/src/models/PaymentIntegration.ts
Normal 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' },
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user