- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8 - Actualizaciones de configuracion Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
61 lines
2.8 KiB
JavaScript
61 lines
2.8 KiB
JavaScript
"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.StorageUsageEntity = void 0;
|
|
const typeorm_1 = require("typeorm");
|
|
let StorageUsageEntity = class StorageUsageEntity {
|
|
};
|
|
exports.StorageUsageEntity = StorageUsageEntity;
|
|
__decorate([
|
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
__metadata("design:type", String)
|
|
], StorageUsageEntity.prototype, "id", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)('uuid'),
|
|
__metadata("design:type", String)
|
|
], StorageUsageEntity.prototype, "tenant_id", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
|
__metadata("design:type", Number)
|
|
], StorageUsageEntity.prototype, "total_files", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'bigint', default: 0 }),
|
|
__metadata("design:type", Number)
|
|
], StorageUsageEntity.prototype, "total_bytes", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'jsonb', default: {} }),
|
|
__metadata("design:type", Object)
|
|
], StorageUsageEntity.prototype, "files_by_type", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'jsonb', default: {} }),
|
|
__metadata("design:type", Object)
|
|
], StorageUsageEntity.prototype, "bytes_by_type", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
__metadata("design:type", Object)
|
|
], StorageUsageEntity.prototype, "max_bytes", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
__metadata("design:type", Object)
|
|
], StorageUsageEntity.prototype, "max_file_size", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.CreateDateColumn)({ type: 'timestamptz' }),
|
|
__metadata("design:type", Date)
|
|
], StorageUsageEntity.prototype, "created_at", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamptz' }),
|
|
__metadata("design:type", Date)
|
|
], StorageUsageEntity.prototype, "updated_at", void 0);
|
|
exports.StorageUsageEntity = StorageUsageEntity = __decorate([
|
|
(0, typeorm_1.Entity)({ schema: 'storage', name: 'usage' }),
|
|
(0, typeorm_1.Index)(['tenant_id'], { unique: true })
|
|
], StorageUsageEntity);
|
|
//# sourceMappingURL=storage-usage.entity.js.map
|