wangzhibo
6 天以前 3f249e399659dcd09d3fe58071b146e50e45c17f
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
import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';
 
 
/**
 * 举报投诉
 */
@Entity('app_complain')
export class AppComplainEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;
 
  @Column({ comment: '类型' })
  type: number;
 
  @Column({ comment: '联系方式' })
  contact: string;
 
  @Column({ comment: '内容' })
  content: string;
 
  @Column({ comment: '图片', type: 'json', nullable: true })
  images: string[];
 
  @Column({ comment: '状态 0-未处理 1-已处理', default: 0 })
  status: number;
 
  @Column({ comment: '处理人ID', nullable: true })
  handlerId: number;
 
  @Column({ comment: '备注', type: 'text', nullable: true })
  remark: string;
}