mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
19 lines
342 B
TypeScript
19 lines
342 B
TypeScript
import { IModelMeta, ISearchRole } from '@/interfaces';
|
|
|
|
export default (Model) =>
|
|
class ModelSearchable extends Model {
|
|
/**
|
|
* Searchable model.
|
|
*/
|
|
static get searchable(): IModelMeta {
|
|
throw true;
|
|
}
|
|
|
|
/**
|
|
* Search roles.
|
|
*/
|
|
static get searchRoles(): ISearchRole[] {
|
|
return [];
|
|
}
|
|
};
|