Loading backend/src/place/entities/place-traduction.entity.ts 0 → 100644 +16 −0 Original line number Diff line number Diff line import { Column, Entity, ManyToOne, PrimaryColumn } from 'typeorm'; import { Place } from './place.entity'; import { LANGUAGES } from 'src/shared/enum/languages.enum'; @Entity() export class PlaceTraduction { @PrimaryColumn() language: LANGUAGES = LANGUAGES.ES; @PrimaryColumn({ name: 'idPlace' }) @ManyToOne(() => Place, (place) => place.availableDates, { nullable: false }) idPlace: number; @Column() description: string; } Loading
backend/src/place/entities/place-traduction.entity.ts 0 → 100644 +16 −0 Original line number Diff line number Diff line import { Column, Entity, ManyToOne, PrimaryColumn } from 'typeorm'; import { Place } from './place.entity'; import { LANGUAGES } from 'src/shared/enum/languages.enum'; @Entity() export class PlaceTraduction { @PrimaryColumn() language: LANGUAGES = LANGUAGES.ES; @PrimaryColumn({ name: 'idPlace' }) @ManyToOne(() => Place, (place) => place.availableDates, { nullable: false }) idPlace: number; @Column() description: string; }