michangarrito/apps/backend/dist/modules/payments/entities/payment-method.entity.js
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
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>
2026-01-07 04:41:02 -06:00

56 lines
2.5 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.PaymentMethod = void 0;
const typeorm_1 = require("typeorm");
let PaymentMethod = class PaymentMethod {
};
exports.PaymentMethod = PaymentMethod;
__decorate([
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
__metadata("design:type", String)
], PaymentMethod.prototype, "id", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'tenant_id' }),
__metadata("design:type", String)
], PaymentMethod.prototype, "tenantId", void 0);
__decorate([
(0, typeorm_1.Column)({ length: 20 }),
__metadata("design:type", String)
], PaymentMethod.prototype, "code", void 0);
__decorate([
(0, typeorm_1.Column)({ length: 100 }),
__metadata("design:type", String)
], PaymentMethod.prototype, "name", void 0);
__decorate([
(0, typeorm_1.Column)({ length: 50, default: 'banknote' }),
__metadata("design:type", String)
], PaymentMethod.prototype, "icon", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'is_default', default: false }),
__metadata("design:type", Boolean)
], PaymentMethod.prototype, "isDefault", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'is_active', default: true }),
__metadata("design:type", Boolean)
], PaymentMethod.prototype, "isActive", void 0);
__decorate([
(0, typeorm_1.Column)({ name: 'sort_order', default: 0 }),
__metadata("design:type", Number)
], PaymentMethod.prototype, "sortOrder", void 0);
__decorate([
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
__metadata("design:type", Date)
], PaymentMethod.prototype, "createdAt", void 0);
exports.PaymentMethod = PaymentMethod = __decorate([
(0, typeorm_1.Entity)({ schema: 'sales', name: 'payments' })
], PaymentMethod);
//# sourceMappingURL=payment-method.entity.js.map