UNPKG

@cheetah.js/orm

Version:
14 lines 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Entity = void 0; const constants_1 = require("../constants"); const core_1 = require("@cheetah.js/core"); function Entity(options) { return (target) => { const entities = core_1.Metadata.get(constants_1.ENTITIES, Reflect) || []; entities.push({ target, options }); core_1.Metadata.set(constants_1.ENTITIES, entities, Reflect); }; } exports.Entity = Entity; //# sourceMappingURL=entity.decorator.js.map