update product full

This commit is contained in:
2026-03-26 12:25:46 +03:00
parent f2b5f7006b
commit 4f5b557085
31733 changed files with 2762883 additions and 5 deletions

View File

@@ -0,0 +1,66 @@
"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.AuthOtp = void 0;
const typeorm_1 = require("typeorm");
let AuthOtp = class AuthOtp {
id;
phone;
codeHash;
purpose;
expiresAt;
usedAt;
attemptCount;
createdAt;
updatedAt;
};
exports.AuthOtp = AuthOtp;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], AuthOtp.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Index)(),
(0, typeorm_1.Column)({ length: 20 }),
__metadata("design:type", String)
], AuthOtp.prototype, "phone", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'code_hash', length: 255 }),
__metadata("design:type", String)
], AuthOtp.prototype, "codeHash", void 0);
__decorate([
(0, typeorm_1.Column)({ length: 30, default: 'login' }),
__metadata("design:type", String)
], AuthOtp.prototype, "purpose", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'expires_at', type: 'timestamp with time zone' }),
__metadata("design:type", Date)
], AuthOtp.prototype, "expiresAt", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'used_at', type: 'timestamp with time zone', nullable: true }),
__metadata("design:type", Object)
], AuthOtp.prototype, "usedAt", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'attempt_count', type: 'int', default: 0 }),
__metadata("design:type", Number)
], AuthOtp.prototype, "attemptCount", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
__metadata("design:type", Date)
], AuthOtp.prototype, "createdAt", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
__metadata("design:type", Date)
], AuthOtp.prototype, "updatedAt", void 0);
exports.AuthOtp = AuthOtp = __decorate([
(0, typeorm_1.Entity)({ name: 'auth_otps' })
], AuthOtp);
//# sourceMappingURL=auth-otp.entity.js.map