Commit 312899fe authored by Diego Iván's avatar Diego Iván
Browse files

agregando entidad PlaceTraduction

parent d2314da2
Loading
Loading
Loading
Loading
+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;
}