/*
 * @Author: YKH
 * @Date: 2021-12-15 13:52:09
 * @LastEditTime: 2021-12-16 09:42:52
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\send_content.ts
 */
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column } from 'typeorm';

/**
 * 机器人发送的内容记录
 */
@EntityModel('shuyou_send_content')
export class ShuyouSendContentEntity extends BaseEntity {


  @Column({ comment: '消息类型', length: 100 })
  msgtype: string;

  @Column({ comment: '消息头部', nullable: true })
  title: string;

  @Column({ comment: '消息内容', type: 'text' })
  text: string;

  @Column({ comment: '被@人的手机号', nullable: true })
  atMobiles: string;

  @Column({ comment: '被@人的用户userid', type: 'text', nullable: true })
  atUserIds: string;

  @Column({ comment: '是否@所有人,默认为0,表示否', default: 0, type: 'tinyint' })
  isAtAll: number;

  @Column({ comment: '是否发送成功,默认为0,表示否', default: 0, type: 'tinyint' })
  isSuccess: number;

}
