|
@@ -11,7 +11,7 @@ export class SearchBehavior extends BaseModel {
|
|
|
ip: string;
|
|
|
@Column({ type: 'character varying', nullable: true, comment: '设备' })
|
|
|
device: string;
|
|
|
- @Column({ type: 'timestamp without time zone', nullable: true, comment: '时间', transformer: { from: value => dayjs(value).format('YYYY-MM-DD HH:mm:ss'), to: value => value } })
|
|
|
+ @Column({ type: 'timestamp without time zone', nullable: true, comment: '时间', transformer: { from: value => (value ? dayjs(value).format('YYYY-MM-DD HH:mm:ss') : value), to: value => value } })
|
|
|
time: Date;
|
|
|
@Column({ type: 'character varying', comment: '检索内容' })
|
|
|
keyword: string;
|