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 })
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;