????
Current Path : C:/inetpub/vhost/invest.gdtsolutions.vn/api/dist/apps/slides/entities/ |
Current File : C:/inetpub/vhost/invest.gdtsolutions.vn/api/dist/apps/slides/entities/slide.entity.js |
"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); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Slide = void 0; const swagger_1 = require("@nestjs/swagger"); const typeorm_1 = require("typeorm"); const base_entity_model_1 = __importDefault(require("../../models/base-entity.model")); const post_entity_1 = require("../../posts/entities/post.entity"); let Slide = class Slide extends base_entity_model_1.default { }; exports.Slide = Slide; __decorate([ (0, swagger_1.ApiProperty)(), (0, typeorm_1.Column)(), __metadata("design:type", Number) ], Slide.prototype, "postId", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, typeorm_1.Column)(), __metadata("design:type", String) ], Slide.prototype, "imageUrl", void 0); __decorate([ (0, swagger_1.ApiProperty)(), (0, typeorm_1.Column)({ length: 3, default: 'vi' }), __metadata("design:type", String) ], Slide.prototype, "lang", void 0); __decorate([ (0, typeorm_1.OneToOne)(() => post_entity_1.Post, (post) => post.slide), (0, typeorm_1.JoinColumn)({ name: 'postId' }), __metadata("design:type", post_entity_1.Post) ], Slide.prototype, "post", void 0); exports.Slide = Slide = __decorate([ (0, typeorm_1.Entity)() ], Slide); //# sourceMappingURL=slide.entity.js.map