Commit 13c5f826 authored by Diego Iván's avatar Diego Iván
Browse files

cambiando de entero a decimal las coordenadas

parent 16d1eba9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -7,8 +7,9 @@ export class CreatePlaceDto {
  name: string;
  imageName: string;
  town: Town;
  latitude: number;
  longitude: number;
  latitude: 'decimal';
  longitude: 'decimal';
  address: string;
  openAt: number;
  closeAt: number;
  categories: Category[];
+6 −3
Original line number Diff line number Diff line
@@ -46,11 +46,14 @@ export class Place {
  @Column()
  imageName: string;

  @Column({ nullable: false })
  latitude: number;
  @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 })
  latitude;

  @Column({ nullable: false, type: 'decimal', precision: 10, scale: 8 })
  longitude;

  @Column({ nullable: false })
  longitude: number;
  address: string;

  @Column({ nullable: false })
  openAt: number;