template-saas/apps/backend/dist/modules/billing/entities/plan.entity.js
rckrdmrd 50a821a415
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
[SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00

115 lines
4.7 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.Plan = void 0;
const typeorm_1 = require("typeorm");
let Plan = class Plan {
get display_name() {
return this.name;
}
};
exports.Plan = Plan;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], Plan.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
__metadata("design:type", String)
], Plan.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
__metadata("design:type", String)
], Plan.prototype, "slug", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "description", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "tagline", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "price_monthly", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "price_yearly", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 3, default: 'USD' }),
__metadata("design:type", String)
], Plan.prototype, "currency", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "stripe_product_id", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "stripe_price_id_monthly", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "stripe_price_id_yearly", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', default: [] }),
__metadata("design:type", Array)
], Plan.prototype, "features", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', default: {} }),
__metadata("design:type", Object)
], Plan.prototype, "limits", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', default: [] }),
__metadata("design:type", Array)
], Plan.prototype, "included_features", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
__metadata("design:type", Boolean)
], Plan.prototype, "is_popular", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
__metadata("design:type", Boolean)
], Plan.prototype, "is_enterprise", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
__metadata("design:type", Boolean)
], Plan.prototype, "is_active", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
__metadata("design:type", Boolean)
], Plan.prototype, "is_visible", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
__metadata("design:type", Number)
], Plan.prototype, "sort_order", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'int', default: 14 }),
__metadata("design:type", Number)
], Plan.prototype, "trial_days", void 0);
__decorate([
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
__metadata("design:type", Object)
], Plan.prototype, "metadata", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)({ type: 'timestamp with time zone' }),
__metadata("design:type", Date)
], Plan.prototype, "created_at", void 0);
__decorate([
(0, typeorm_1.UpdateDateColumn)({ type: 'timestamp with time zone' }),
__metadata("design:type", Date)
], Plan.prototype, "updated_at", void 0);
exports.Plan = Plan = __decorate([
(0, typeorm_1.Entity)({ name: 'plans', schema: 'plans' })
], Plan);
//# sourceMappingURL=plan.entity.js.map