/*
 * @Author: YKH
 * @Date: 2022-04-14 11:33:31
 * @LastEditTime: 2022-04-15 15:03:15
 * @Description: 
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\vx_api_type.ts
 */
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column } from 'typeorm';

/**
 * 微信扫码平台（浪潮 红豆 梦想）
 */
@EntityModel('vx_api_type')
export class ShuyouVXApiTypeEntity extends BaseEntity {

  @Column({ comment: '平台名称', length: 100 })
  name: string;

  @Column({ comment: '描述', nullable: true, length: 200 })
  description: string;

  @Column({ comment: '备注,可以记录官网链接等', nullable: true })
  remark: string;

  @Column({ comment: '平台账号', length: 50 })
  account_text: string;

  @Column({ comment: '平台密码', length: 50 })
  password_text: string;

  @Column({ comment: '标识,用于上传服务器', length: 50 })
  mark: string;

  @Column({ comment: '余额', type: 'decimal', nullable: true, scale: 2 })
  amount: number;

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

  @Column({ comment: '使用顺序', type: 'tinyint' })
  orderUse: number;

}

