mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
refactor(nestjs): currencies module
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { TenantModel } from "@/modules/System/models/TenantModel";
|
||||
|
||||
export class Currency extends TenantModel {
|
||||
public readonly currencySign: string;
|
||||
public readonly currencyName: string;
|
||||
public readonly currencyCode: string;
|
||||
|
||||
/**
|
||||
* Table name
|
||||
*/
|
||||
static get tableName() {
|
||||
return 'currencies';
|
||||
}
|
||||
|
||||
/**
|
||||
* Timestamps columns.
|
||||
*/
|
||||
get timestamps() {
|
||||
return ['createdAt', 'updatedAt'];
|
||||
}
|
||||
|
||||
static get resourceable() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user