wangzhibo
6 天以前 7dcc2997614f849258091f5d66e648317a40d323
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 客服连接
 */
@Entity('cs_conn')
export class CsConnEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;
 
  @Column({ comment: '连接ID' })
  connId: string;
 
  @Column({ comment: '类型 0-客户 1-后台', default: 0 })
  type: number;
}