"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);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.KycVerificationAttempt = void 0;
const typeorm_1 = require("typeorm");
const kyc_status_enum_1 = require("./kyc-status.enum");
let KycVerificationAttempt = class KycVerificationAttempt {
};
exports.KycVerificationAttempt = KycVerificationAttempt;
__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)(),
    __metadata("design:type", Number)
], KycVerificationAttempt.prototype, "id", void 0);
__decorate([
    (0, typeorm_1.Column)(),
    __metadata("design:type", Number)
], KycVerificationAttempt.prototype, "userId", void 0);
__decorate([
    (0, typeorm_1.Index)({ unique: true }),
    (0, typeorm_1.Column)({ nullable: true }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "providerSessionId", void 0);
__decorate([
    (0, typeorm_1.Column)({ default: "didit", charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "provider", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "workflowId", void 0);
__decorate([
    (0, typeorm_1.Column)({
        type: "enum",
        enum: kyc_status_enum_1.KycVerificationStatus,
        default: kyc_status_enum_1.KycVerificationStatus.PENDING,
    }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "status", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "rejectionReason", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "reviewNotes", void 0);
__decorate([
    (0, typeorm_1.Column)({ nullable: true, charset: "utf8mb4", collation: "utf8mb4_general_ci" }),
    __metadata("design:type", String)
], KycVerificationAttempt.prototype, "decisionSource", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Object)
], KycVerificationAttempt.prototype, "metadata", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "simple-json", nullable: true }),
    __metadata("design:type", Object)
], KycVerificationAttempt.prototype, "providerPayload", void 0);
__decorate([
    (0, typeorm_1.Column)({ type: "datetime", nullable: true }),
    __metadata("design:type", Date)
], KycVerificationAttempt.prototype, "completedAt", void 0);
__decorate([
    (0, typeorm_1.CreateDateColumn)(),
    __metadata("design:type", Date)
], KycVerificationAttempt.prototype, "createdAt", void 0);
__decorate([
    (0, typeorm_1.UpdateDateColumn)(),
    __metadata("design:type", Date)
], KycVerificationAttempt.prototype, "updatedAt", void 0);
exports.KycVerificationAttempt = KycVerificationAttempt = __decorate([
    (0, typeorm_1.Entity)("kyc_verification_attempts")
], KycVerificationAttempt);
//# sourceMappingURL=kyc-verification-attempt.entity.js.map