1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| import { BaseEntity, transformerJson } from '../../base/entity/base';
| import { Entity, Column, Index } from 'typeorm';
|
| /**
| * 数据回收站 软删除的时候数据会回收到该表
| */
| @Entity('recycle_data')
| export class RecycleDataEntity extends BaseEntity {
| @Column({ comment: '表', type: 'json', transformer: transformerJson })
| entityInfo: {
| // 数据源名称
| dataSourceName: string;
| // entity
| entity: string;
| };
|
| @Index()
| @Column({ comment: '操作人', nullable: true })
| userId: number;
|
| @Column({
| comment: '被删除的数据',
| type: 'json',
| transformer: transformerJson,
| })
| data: object[];
|
| @Column({ comment: '请求的接口', nullable: true })
| url: string;
|
| @Column({
| comment: '请求参数',
| nullable: true,
| type: 'json',
| transformer: transformerJson,
| })
| params: string;
|
| @Column({ comment: '删除数据条数', default: 1 })
| count: number;
| }
|
|