changed date string to iso

This commit is contained in:
unknown
2024-10-27 15:47:39 +03:00
parent 008fe0a515
commit ccf3e34fbf
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,8 @@
import { SourceType } from '@app/common/constants/source-type.enum';
import { Entity, Column, PrimaryColumn, Index } from 'typeorm';
import { Entity, Column, PrimaryColumn, Unique } from 'typeorm';
@Entity('device-status-log')
@Index('event_time_idx', ['eventTime'])
@Unique('event_time_idx', ['eventTime'])
export class DeviceStatusLogEntity {
@Column({ type: 'int', generated: true, unsigned: true })
id: number;