Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
88 lines
3.8 KiB
JavaScript
88 lines
3.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.Plan = void 0;
|
|
const typeorm_1 = require("typeorm");
|
|
let Plan = class Plan {
|
|
};
|
|
exports.Plan = Plan;
|
|
__decorate([
|
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "id", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 50 }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "name", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 20, unique: true }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "code", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "description", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'price_monthly', type: 'decimal', precision: 10, scale: 2 }),
|
|
__metadata("design:type", Number)
|
|
], Plan.prototype, "priceMonthly", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'price_yearly', type: 'decimal', precision: 10, scale: 2, nullable: true }),
|
|
__metadata("design:type", Number)
|
|
], Plan.prototype, "priceYearly", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 3, default: 'MXN' }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "currency", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'included_tokens' }),
|
|
__metadata("design:type", Number)
|
|
], Plan.prototype, "includedTokens", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
__metadata("design:type", Object)
|
|
], Plan.prototype, "features", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'max_products', nullable: true }),
|
|
__metadata("design:type", Number)
|
|
], Plan.prototype, "maxProducts", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'max_users', default: 1 }),
|
|
__metadata("design:type", Number)
|
|
], Plan.prototype, "maxUsers", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'whatsapp_own_number', default: false }),
|
|
__metadata("design:type", Boolean)
|
|
], Plan.prototype, "whatsappOwnNumber", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ length: 20, default: 'active' }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "status", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'stripe_price_id_monthly', length: 100, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "stripePriceIdMonthly", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.Column)({ name: 'stripe_price_id_yearly', length: 100, nullable: true }),
|
|
__metadata("design:type", String)
|
|
], Plan.prototype, "stripePriceIdYearly", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
__metadata("design:type", Date)
|
|
], Plan.prototype, "createdAt", void 0);
|
|
__decorate([
|
|
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at' }),
|
|
__metadata("design:type", Date)
|
|
], Plan.prototype, "updatedAt", void 0);
|
|
exports.Plan = Plan = __decorate([
|
|
(0, typeorm_1.Entity)({ schema: 'subscriptions', name: 'plans' })
|
|
], Plan);
|
|
//# sourceMappingURL=plan.entity.js.map
|