import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * 字典信息
 */
@Entity('dj_mch_channel')
export class MchChannelEntity extends BaseEntity {
  @Column({ comment: '商户号' })
  mchId: string;

  @Column({ comment: '支付方式' })
  payType: string;

  @Column({ comment: '通道编码' })
  code: string;

  @Column({ comment: '货币单位' })
  currency: string;

  @Column({ comment: '权重' })
  weight: number;

  @Column({ comment: '状态 0-未启用 1 启用', type: 'tinyint', default: 1 })
  status: number;
}
