mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
29 lines
706 B
TypeScript
29 lines
706 B
TypeScript
import { Model } from 'objection';
|
|
import TenantModel from 'models/TenantModel';
|
|
|
|
export class PaymentIntegration extends TenantModel {
|
|
static get tableName() {
|
|
return 'payment_integrations';
|
|
}
|
|
|
|
static get idColumn() {
|
|
return 'id';
|
|
}
|
|
|
|
static get jsonSchema() {
|
|
return {
|
|
type: 'object',
|
|
required: ['name', 'service', 'active'],
|
|
properties: {
|
|
id: { type: 'integer' },
|
|
service: { type: 'string' },
|
|
active: { type: 'boolean' },
|
|
accountId: { type: 'string' },
|
|
options: { type: 'object' },
|
|
createdAt: { type: 'string', format: 'date-time' },
|
|
updatedAt: { type: 'string', format: 'date-time' },
|
|
},
|
|
};
|
|
}
|
|
}
|