diff --git a/src/entities/weather.entity.ts b/src/entities/weather.entity.ts index 0e029be..62073f9 100644 --- a/src/entities/weather.entity.ts +++ b/src/entities/weather.entity.ts @@ -8,40 +8,40 @@ export class WeatherEntity { @Column({ type: Date }) date: Date; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) indoorHumidity: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) outdoorHumidity: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) indoorTemperature: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) outdoorTemperature: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) outdoorDewPoint: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) windChillTemp: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) windSpeed: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) gustSpeed: number; @Column({ nullable: true }) windDirection: string; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) rainDiff: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) totalRain: number; - @Column({ nullable: true }) + @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 }) absPressure: number; fresh?: boolean;