"use strict";
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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RouteLabelSequenceLog = void 0;
const typeorm_1 = require("typeorm");
const shell_1 = require("@things-factory/shell");
const auth_base_1 = require("@things-factory/auth-base");
let RouteLabelSequenceLog = class RouteLabelSequenceLog {
};
__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
    __metadata("design:type", String)
], RouteLabelSequenceLog.prototype, "id", void 0);
__decorate([
    (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
    __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
], RouteLabelSequenceLog.prototype, "domain", void 0);
__decorate([
    (0, typeorm_1.RelationId)((l) => l.domain),
    __metadata("design:type", String)
], RouteLabelSequenceLog.prototype, "domainId", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", String)
], RouteLabelSequenceLog.prototype, "releaseGoodId", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", String)
], RouteLabelSequenceLog.prototype, "field", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: 'int' }),
    __metadata("design:type", Number)
], RouteLabelSequenceLog.prototype, "from", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: 'int' }),
    __metadata("design:type", Number)
], RouteLabelSequenceLog.prototype, "to", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: 'int' }),
    __metadata("design:type", Number)
], RouteLabelSequenceLog.prototype, "qty", void 0);
__decorate([
    (0, typeorm_1.CreateDateColumn)(),
    __metadata("design:type", Date)
], RouteLabelSequenceLog.prototype, "createdAt", void 0);
__decorate([
    (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
    __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
], RouteLabelSequenceLog.prototype, "creator", void 0);
__decorate([
    (0, typeorm_1.RelationId)((l) => l.creator),
    __metadata("design:type", String)
], RouteLabelSequenceLog.prototype, "creatorId", void 0);
RouteLabelSequenceLog = __decorate([
    (0, typeorm_1.Entity)('route_label_sequence_logs'),
    (0, typeorm_1.Index)('ix_route_label_sequence_logs_0', (l) => [
        l.domain,
        l.releaseGoodId,
        l.field,
        l.createdAt
    ]),
    (0, typeorm_1.Index)('ix_route_label_sequence_logs_1', (l) => [l.domain, l.field, l.createdAt])
], RouteLabelSequenceLog);
exports.RouteLabelSequenceLog = RouteLabelSequenceLog;
//# sourceMappingURL=route-label-sequence-log.js.map