Loading backend/src/town/dto/create-town-trad.dto.ts +0 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,5 @@ import { LANGUAGES } from 'src/shared/enum/languages.enum'; export class CreateTownTraductionDto { townId: number; language: LANGUAGES; name: string; description: string; } backend/src/town/dto/update-town.dto.ts +5 −4 Original line number Diff line number Diff line import { PartialType } from '@nestjs/swagger'; import { CreateTownDto } from './create-town.dto'; export class UpdateTownDto extends PartialType(CreateTownDto) {} export class UpdateTownDto { name: string; imageName: string; state: number; } backend/src/town/entities/town.entity.ts +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ export class Town { townId: number; @ManyToOne(() => State, (state) => state.stateId, { nullable: false }) state: number; state: State; @OneToMany(() => Place, (place) => place.idTown) places: Place[]; Loading Loading
backend/src/town/dto/create-town-trad.dto.ts +0 −1 Original line number Diff line number Diff line Loading @@ -3,6 +3,5 @@ import { LANGUAGES } from 'src/shared/enum/languages.enum'; export class CreateTownTraductionDto { townId: number; language: LANGUAGES; name: string; description: string; }
backend/src/town/dto/update-town.dto.ts +5 −4 Original line number Diff line number Diff line import { PartialType } from '@nestjs/swagger'; import { CreateTownDto } from './create-town.dto'; export class UpdateTownDto extends PartialType(CreateTownDto) {} export class UpdateTownDto { name: string; imageName: string; state: number; }
backend/src/town/entities/town.entity.ts +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ export class Town { townId: number; @ManyToOne(() => State, (state) => state.stateId, { nullable: false }) state: number; state: State; @OneToMany(() => Place, (place) => place.idTown) places: Place[]; Loading