"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JobEntity = void 0;
const tslib_1 = require("tslib");
const _a = tslib_1.__importStar(require("@zyno-io/ts-server-foundation/type-metadata-runtime"));
const reflection_1 = require("../../reflection");
const database_1 = require("../../database");
const __tsf_metadata_type = _a.createCompactMetadataRegistryV1("[1,[{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":18,\"typeName\":\"PrimaryKey\",\"types\":[{\"kind\":20,\"name\":\"typia.tag\",\"type\":{\"kind\":12,\"types\":[{\"kind\":18,\"types\":[{\"kind\":20,\"name\":\"target\",\"type\":{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"boolean\"},{\"kind\":10,\"literal\":\"bigint\"},{\"kind\":10,\"literal\":\"number\"},{\"kind\":10,\"literal\":\"string\"},{\"kind\":10,\"literal\":\"array\"},{\"kind\":10,\"literal\":\"object\"}],\"typeName\":\"TypiaTagTarget\"},\"optional\":false},{\"kind\":20,\"name\":\"kind\",\"type\":{\"kind\":10,\"literal\":\"database:primaryKey\"},\"optional\":false},{\"kind\":20,\"name\":\"value\",\"type\":{\"kind\":10,\"literal\":true},\"optional\":false}]},{\"kind\":4}]},\"optional\":true}],\"typeName\":\"PrimaryKey\"},{\"kind\":2,\"typeName\":\"MaxLength\",\"validation\":[{\"name\":\"maxLength\",\"args\":[{\"kind\":10,\"literal\":191}]}]}]},{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"MaxLength\",\"validation\":[{\"name\":\"maxLength\",\"args\":[{\"kind\":10,\"literal\":191}]}]}]},{\"kind\":13,\"types\":[{\"kind\":7},{\"kind\":2,\"typeName\":\"TypeAnnotation\",\"annotations\":{\"tsf:type\":{\"kind\":10,\"literal\":\"integer\"}}}],\"typeName\":\"integer\"},{\"kind\":12,\"types\":[{\"kind\":2},{\"kind\":5}]},{\"kind\":12,\"types\":[{\"kind\":13,\"types\":[{\"kind\":6},{\"kind\":2,\"typeName\":\"MaxLength\",\"validation\":[{\"name\":\"maxLength\",\"args\":[{\"kind\":10,\"literal\":64}]}]}]},{\"kind\":5}]},{\"kind\":13,\"types\":[{\"kind\":12,\"types\":[{\"kind\":10,\"literal\":\"completed\"},{\"kind\":10,\"literal\":\"failed\"}]},{\"kind\":2,\"typeName\":\"MaxLength\",\"validation\":[{\"name\":\"maxLength\",\"args\":[{\"kind\":10,\"literal\":32}]}]}]}]]", []);
let _JobEntityMetadata_1;
let JobEntity = class JobEntity extends database_1.BaseEntity {
    id;
    queue;
    queueId;
    attempt;
    name;
    data;
    traceId;
    status;
    result;
    createdAt;
    shouldExecuteAt;
    executedAt;
    completedAt;
    static __tsfType = _JobEntityMetadata_1 = _a.decodeCompactMetadataV1("[1,{\"kind\":16,\"name\":\"JobEntity\",\"typeName\":\"JobEntity\",\"classType\":{\"$tsf\":0},\"properties\":[{\"name\":\"id\",\"type\":{\"$tsfType\":0},\"optional\":false,\"primaryKey\":true},{\"name\":\"queue\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"queueId\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"attempt\",\"type\":{\"$tsfType\":2},\"optional\":false},{\"name\":\"name\",\"type\":{\"$tsfType\":1},\"optional\":false},{\"name\":\"data\",\"type\":{\"$tsfType\":3},\"optional\":false},{\"name\":\"traceId\",\"type\":{\"$tsfType\":4},\"optional\":false},{\"name\":\"status\",\"type\":{\"$tsfType\":5},\"optional\":false},{\"name\":\"result\",\"type\":{\"$tsfType\":3},\"optional\":false},{\"name\":\"createdAt\",\"type\":{\"kind\":13,\"types\":[{\"kind\":16,\"typeName\":\"Date\",\"classType\":{\"$tsf\":1}},{\"kind\":2,\"typeName\":\"MySQL\",\"database\":{\"mysql\":{\"type\":\"datetime(3)\"}}}]},\"optional\":false},{\"name\":\"shouldExecuteAt\",\"type\":{\"kind\":13,\"types\":[{\"kind\":16,\"typeName\":\"Date\",\"classType\":{\"$tsf\":1}},{\"kind\":2,\"typeName\":\"MySQL\",\"database\":{\"mysql\":{\"type\":\"datetime(3)\"}}}]},\"optional\":false},{\"name\":\"executedAt\",\"type\":{\"kind\":13,\"types\":[{\"kind\":16,\"typeName\":\"Date\",\"classType\":{\"$tsf\":1}},{\"kind\":2,\"typeName\":\"MySQL\",\"database\":{\"mysql\":{\"type\":\"datetime(3)\"}}}]},\"optional\":false},{\"name\":\"completedAt\",\"type\":{\"kind\":13,\"types\":[{\"kind\":16,\"typeName\":\"Date\",\"classType\":{\"$tsf\":1}},{\"kind\":2,\"typeName\":\"MySQL\",\"database\":{\"mysql\":{\"type\":\"datetime(3)\"}}}]},\"optional\":false}],\"methods\":[],\"hasConstructor\":false,\"constructorParameters\":[]}]", [() => JobEntity, () => (typeof Date !== "undefined" ? Date : (typeof exports !== "undefined" ? exports.Date : undefined))], __tsf_metadata_type);
};
exports.JobEntity = JobEntity;
exports.JobEntity = JobEntity = tslib_1.__decorate([
    reflection_1.entity.name('_jobs')
], JobEntity);
_JobEntityMetadata_1.classType = JobEntity;
JobEntity.__tsfType = _JobEntityMetadata_1;
//# sourceMappingURL=entity.js.map