"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var model_util_1 = require("model-util");
var typescript_ioc_1 = require("typescript-ioc");
var MsMonitorMetricsTemplateItem_1 = require("./MsMonitorMetricsTemplateItem");
var MsMonitorMetricsTemplateCUImpl = /** @class */ (function (_super) {
    __extends(MsMonitorMetricsTemplateCUImpl, _super);
    function MsMonitorMetricsTemplateCUImpl() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    MsMonitorMetricsTemplateCUImpl.prototype.newInstance = function () {
        return new MsMonitorMetricsTemplateCUImpl();
    };
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "ID", {
        get: function () {
            return new model_util_1.FieldUtil('id', 'id', 'id', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "CREATE_TIME", {
        get: function () {
            return new model_util_1.FieldUtil('create_time', 'createTime', 'create_time', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "UPDATE_TIME", {
        get: function () {
            return new model_util_1.FieldUtil('update_time', 'updateTime', 'update_time', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "STATE", {
        get: function () {
            return new model_util_1.FieldUtil('state', 'state', 'state', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "CODE", {
        get: function () {
            return new model_util_1.FieldUtil('code', 'code', '代码', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "NAME", {
        get: function () {
            return new model_util_1.FieldUtil('name', 'name', '名称', this);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateCUImpl.prototype, "REMARK", {
        get: function () {
            return new model_util_1.FieldUtil('remark', 'remark', '备注', this);
        },
        enumerable: true,
        configurable: true
    });
    return MsMonitorMetricsTemplateCUImpl;
}(model_util_1.ConditionUtilImpl));
var MsMonitorMetricsTemplateMU = /** @class */ (function (_super) {
    __extends(MsMonitorMetricsTemplateMU, _super);
    function MsMonitorMetricsTemplateMU() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.tableName = 'ms_monitor_metrics_template';
        _this.tableFields = ['id', 'create_time', 'update_time', 'state', 'code', 'name', 'remark'];
        _this.modelFields = ['id', 'createTime', 'updateTime', 'state', 'code', 'name', 'remark'];
        _this.modelIdFields = ['id'];
        _this.tableIdFields = ['id'];
        _this.idType = model_util_1.IdType.CUSTOM;
        _this.joinTables = [];
        _this.subTables = [{
                name: 'msMonitorMetricsTemplateItem',
                parentIdFields: [MsMonitorMetricsTemplateMU_1.ID],
                foreignKeyFields: [MsMonitorMetricsTemplateItem_1.MsMonitorMetricsTemplateItemMU.TEMPLATE_ID],
                getTableUtil: function () {
                    return typescript_ioc_1.Container.get(MsMonitorMetricsTemplateItem_1.MsMonitorMetricsTemplateItemMU);
                }
            }
        ];
        return _this;
    }
    MsMonitorMetricsTemplateMU_1 = MsMonitorMetricsTemplateMU;
    MsMonitorMetricsTemplateMU.prototype.createConditionUtil = function () {
        return new MsMonitorMetricsTemplateCUImpl();
    };
    Object.defineProperty(MsMonitorMetricsTemplateMU, "ID", {
        get: function () {
            return new model_util_1.FieldUtil('id', 'id', 'id', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "CREATE_TIME", {
        get: function () {
            return new model_util_1.FieldUtil('create_time', 'createTime', 'create_time', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "UPDATE_TIME", {
        get: function () {
            return new model_util_1.FieldUtil('update_time', 'updateTime', 'update_time', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "STATE", {
        get: function () {
            return new model_util_1.FieldUtil('state', 'state', 'state', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "CODE", {
        get: function () {
            return new model_util_1.FieldUtil('code', 'code', '代码', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "NAME", {
        get: function () {
            return new model_util_1.FieldUtil('name', 'name', '名称', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU, "REMARK", {
        get: function () {
            return new model_util_1.FieldUtil('remark', 'remark', '备注', new MsMonitorMetricsTemplateCUImpl());
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "ID", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.ID;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "CREATE_TIME", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.CREATE_TIME;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "UPDATE_TIME", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.UPDATE_TIME;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "STATE", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.STATE;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "CODE", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.CODE;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "NAME", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.NAME;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MsMonitorMetricsTemplateMU.prototype, "REMARK", {
        get: function () {
            return MsMonitorMetricsTemplateMU_1.REMARK;
        },
        enumerable: true,
        configurable: true
    });
    var MsMonitorMetricsTemplateMU_1;
    MsMonitorMetricsTemplateMU = MsMonitorMetricsTemplateMU_1 = __decorate([
        typescript_ioc_1.Singleton
    ], MsMonitorMetricsTemplateMU);
    return MsMonitorMetricsTemplateMU;
}(model_util_1.TableUtilImpl));
exports.MsMonitorMetricsTemplateMU = MsMonitorMetricsTemplateMU;
//# sourceMappingURL=MsMonitorMetricsTemplate.js.map