feat: wip migrate server to nestjs

This commit is contained in:
Ahmed Bouhuolia
2024-11-12 23:08:51 +02:00
parent f5834c72c6
commit 19080a67ab
94 changed files with 7587 additions and 98 deletions

View File

@@ -0,0 +1,22 @@
import * as O from 'objection';
import { IModelMeta, } from '@/interfaces/Model';
export const SearchableModel: O.Plugin = (Model) =>
// @ts-ignore
class extends Model {
additionalProperty: string;
/**
* Searchable model.
*/
static get searchable(): IModelMeta {
throw true;
}
/**
* Search roles.
*/
// static get searchRoles(): ISearchRole[] {
// return [];
// }
};