fix issue in real time

This commit is contained in:
faris Aljohari
2024-10-27 02:23:28 -05:00
parent b596d97826
commit 9160a982ba
2 changed files with 9 additions and 5 deletions

View File

@ -4,7 +4,11 @@ import { Entity, Column, PrimaryColumn, Index } from 'typeorm';
@Entity('device-status-log')
@Index('logTime_idx', ['eventTime'])
export class DeviceStatusLogEntity {
@PrimaryColumn()
@PrimaryColumn({
type: 'int',
generated: true,
unsigned: true,
})
id: number;
@Column({ type: 'text' })