change entity numeric types

This commit is contained in:
Evert Prants 2023-09-17 11:10:53 +03:00
parent ded3f0fd83
commit a9aaf45bf3
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -8,40 +8,40 @@ export class WeatherEntity {
@Column({ type: Date }) @Column({ type: Date })
date: Date; date: Date;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
indoorHumidity: number; indoorHumidity: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
outdoorHumidity: number; outdoorHumidity: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
indoorTemperature: number; indoorTemperature: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
outdoorTemperature: number; outdoorTemperature: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
outdoorDewPoint: number; outdoorDewPoint: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
windChillTemp: number; windChillTemp: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
windSpeed: number; windSpeed: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
gustSpeed: number; gustSpeed: number;
@Column({ nullable: true }) @Column({ nullable: true })
windDirection: string; windDirection: string;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
rainDiff: number; rainDiff: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
totalRain: number; totalRain: number;
@Column({ nullable: true }) @Column({ nullable: true, type: 'decimal', precision: 6, scale: 2 })
absPressure: number; absPressure: number;
fresh?: boolean; fresh?: boolean;