UNPKG

@rytass/cms-base-nestjs-module

Version:

Rytass Content Management System NestJS Base Module

25 lines (22 loc) 992 B
import { PrimaryColumn, Entity } from 'typeorm'; function _ts_decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : 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; } const CategoryRelationRepo = Symbol('CategoryRelationRepo'); class CategoryRelationEntity { parentId; childId; } _ts_decorate([ PrimaryColumn('uuid') ], CategoryRelationEntity.prototype, "parentId", void 0); _ts_decorate([ PrimaryColumn('uuid') ], CategoryRelationEntity.prototype, "childId", void 0); CategoryRelationEntity = _ts_decorate([ Entity('category_relations') ], CategoryRelationEntity); export { CategoryRelationEntity, CategoryRelationRepo };