change entity numeric types
This commit is contained in:
parent
ded3f0fd83
commit
a9aaf45bf3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user