UNPKG

@knestjs/core

Version:

Knestjs search to be a Nestjs ORM in which you write the models once and only once. This is done creating migrations automatically from the models that you create.

11 lines 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTableName = void 0; const constants_1 = require("../constants"); const getTableName = (model) => { const metadata = Reflect.getMetadata(constants_1.KNEST_TABLE_INFO, model); const originalName = metadata?.name ?? model.name; return originalName; }; exports.getTableName = getTableName; //# sourceMappingURL=get-table-name.js.map