"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.TenantWhatsAppNumber = void 0; const typeorm_1 = require("typeorm"); const tenant_entity_1 = require("../../auth/entities/tenant.entity"); let TenantWhatsAppNumber = class TenantWhatsAppNumber { }; exports.TenantWhatsAppNumber = TenantWhatsAppNumber; __decorate([ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'), __metadata("design:type", String) ], TenantWhatsAppNumber.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'tenant_id', type: 'uuid' }), __metadata("design:type", String) ], TenantWhatsAppNumber.prototype, "tenantId", void 0); __decorate([ (0, typeorm_1.ManyToOne)(() => tenant_entity_1.Tenant, { onDelete: 'CASCADE' }), (0, typeorm_1.JoinColumn)({ name: 'tenant_id' }), __metadata("design:type", tenant_entity_1.Tenant) ], TenantWhatsAppNumber.prototype, "tenant", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'phone_number_id', length: 50, unique: true }), __metadata("design:type", String) ], TenantWhatsAppNumber.prototype, "phoneNumberId", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'phone_number', length: 20, nullable: true }), __metadata("design:type", String) ], TenantWhatsAppNumber.prototype, "phoneNumber", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'display_name', length: 100, nullable: true }), __metadata("design:type", String) ], TenantWhatsAppNumber.prototype, "displayName", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'is_platform_number', default: false }), __metadata("design:type", Boolean) ], TenantWhatsAppNumber.prototype, "isPlatformNumber", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'is_active', default: true }), __metadata("design:type", Boolean) ], TenantWhatsAppNumber.prototype, "isActive", void 0); __decorate([ (0, typeorm_1.CreateDateColumn)({ name: 'created_at' }), __metadata("design:type", Date) ], TenantWhatsAppNumber.prototype, "createdAt", void 0); exports.TenantWhatsAppNumber = TenantWhatsAppNumber = __decorate([ (0, typeorm_1.Entity)({ schema: 'public', name: 'tenant_whatsapp_numbers' }), (0, typeorm_1.Unique)(['tenantId', 'phoneNumberId']) ], TenantWhatsAppNumber); //# sourceMappingURL=tenant-whatsapp-number.entity.js.map