wangrong
2022-06-28 0b31be01af4247244e1b6285d6c537c2894acea9
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
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Index } from 'typeorm';
 
/**
 * 系统日志
 */
@EntityModel('t_sys_user_chat')
export class ChatUserEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID', nullable: true, type: 'bigint' })
  userId: number;
 
  @Index()
  @Column({ comment: '行为', length: 100 })
  action: string;
 
  @Index()
  @Column({ comment: '内容', length: 100 })
  chatmsg: string;
 
  @Index()
  @Column({ comment: 'ip', nullable: true, length: 50 })
  ip: string;
 
  @Index()
  @Column({ comment: 'ip地址', nullable: true, length: 50 })
  ipAddr: string;
 
  @Column({ comment: '参数', nullable: true, type: 'text' })
  params: string;
}