"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TableInheritance = TableInheritance;
const globals_1 = require("../../globals");
/**
 * Sets for entity to use table inheritance pattern.
 * @param options
 * @param options.pattern
 * @param options.column
 */
function TableInheritance(options) {
    return function (target) {
        (0, globals_1.getMetadataArgsStorage)().inheritances.push({
            target: target,
            pattern: options && options.pattern ? options.pattern : "STI",
            column: options && options.column
                ? typeof options.column === "string"
                    ? { name: options.column }
                    : options.column
                : undefined,
        });
    };
}

//# sourceMappingURL=TableInheritance.js.map
