mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
changed date string to iso
This commit is contained in:
@ -2,13 +2,9 @@ import { SourceType } from '@app/common/constants/source-type.enum';
|
|||||||
import { Entity, Column, PrimaryColumn, Index } from 'typeorm';
|
import { Entity, Column, PrimaryColumn, Index } from 'typeorm';
|
||||||
|
|
||||||
@Entity('device-status-log')
|
@Entity('device-status-log')
|
||||||
@Index('logTime_idx', ['eventTime'])
|
@Index('event_time_idx', ['eventTime'])
|
||||||
export class DeviceStatusLogEntity {
|
export class DeviceStatusLogEntity {
|
||||||
@PrimaryColumn({
|
@Column({ type: 'int', generated: true, unsigned: true })
|
||||||
type: 'int',
|
|
||||||
generated: true,
|
|
||||||
unsigned: true,
|
|
||||||
})
|
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
@Column({ type: 'text' })
|
@Column({ type: 'text' })
|
||||||
|
Reference in New Issue
Block a user