wangrong
2026-09-30 76cbe2e5f55b8fa40f6e8a2b7a2cf91a52ea4b10
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;
}