Spaces:
Running
Running
| ; | |
| 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.SubscriptionPlan = void 0; | |
| const typeorm_1 = require("typeorm"); | |
| let SubscriptionPlan = class SubscriptionPlan { | |
| }; | |
| exports.SubscriptionPlan = SubscriptionPlan; | |
| __decorate([ | |
| (0, typeorm_1.PrimaryGeneratedColumn)('uuid'), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "id", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ unique: true }), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "name", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)(), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "display_name", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ type: 'text', nullable: true }), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "description", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, default: 0 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "price_monthly", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2, default: 0 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "price_yearly", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ nullable: true }), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "stripe_price_id_monthly", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ nullable: true }), | |
| __metadata("design:type", String) | |
| ], SubscriptionPlan.prototype, "stripe_price_id_yearly", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 1 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "max_agents", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 100 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "max_conversations_per_month", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 50 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "max_knowledge_items", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 1 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "max_api_keys", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 7 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "trial_days", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_analytics", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_custom_branding", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_multi_language", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_priority_support", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_widget_customization", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_export", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_webhooks", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: false }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "has_api_access", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: true }), | |
| __metadata("design:type", Boolean) | |
| ], SubscriptionPlan.prototype, "is_active", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ default: 0 }), | |
| __metadata("design:type", Number) | |
| ], SubscriptionPlan.prototype, "sort_order", void 0); | |
| __decorate([ | |
| (0, typeorm_1.Column)({ nullable: true, type: 'jsonb' }), | |
| __metadata("design:type", Array) | |
| ], SubscriptionPlan.prototype, "features_list", void 0); | |
| __decorate([ | |
| (0, typeorm_1.CreateDateColumn)(), | |
| __metadata("design:type", Date) | |
| ], SubscriptionPlan.prototype, "created_at", void 0); | |
| __decorate([ | |
| (0, typeorm_1.UpdateDateColumn)(), | |
| __metadata("design:type", Date) | |
| ], SubscriptionPlan.prototype, "updated_at", void 0); | |
| exports.SubscriptionPlan = SubscriptionPlan = __decorate([ | |
| (0, typeorm_1.Entity)('subscription_plans') | |
| ], SubscriptionPlan); | |
| //# sourceMappingURL=subscription-plan.entity.js.map |