mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
34 lines
722 B
TypeScript
34 lines
722 B
TypeScript
import { Model, mixin } from 'objection';
|
|
import TenantModel from 'models/TenantModel';
|
|
|
|
export class TransactionPaymentService extends TenantModel {
|
|
/**
|
|
* Table name
|
|
*/
|
|
static get tableName() {
|
|
return 'transactions_payment_services';
|
|
}
|
|
|
|
static get jsonSchema() {
|
|
return {
|
|
type: 'object',
|
|
required: ['service', 'enable'],
|
|
properties: {
|
|
id: { type: 'integer' },
|
|
reference_id: { type: 'integer' },
|
|
reference_type: { type: 'string' },
|
|
service: { type: 'string' },
|
|
enable: { type: 'boolean' },
|
|
options: { type: 'object' },
|
|
},
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Relationship mapping.
|
|
*/
|
|
static get relationMappings() {
|
|
return {};
|
|
}
|
|
}
|