Files
bigcapital/packages/server-nest/src/modules/PaymentLinks/models/PaymentLink.ts
2024-12-25 00:43:55 +02:00

31 lines
567 B
TypeScript

import { Model } from 'objection';
export class PaymentLink extends Model {
public tenantId!: number;
public resourceId!: number;
public resourceType!: string;
public linkId!: string;
public publicity!: string;
public expiryAt!: Date;
// Timestamps
public createdAt!: Date;
public updatedAt!: Date;
/**
* Table name.
* @returns {string}
*/
static get tableName() {
return 'payment_links';
}
/**
* Timestamps columns.
* @returns {string[]}
*/
static get timestamps() {
return ['createdAt', 'updatedAt'];
}
}