/*
 * @Author: YKH
 * @Date: 2022-09-01 20:41:58
 * @LastEditTime: 2022-09-02 10:07:27
 * @Description: file content
 * @FilePath: \cool-admin\cool-admin-midway-master\src\app\modules\shuyou\entity\rent_ledger_computer.ts
 */
import { EntityModel } from '@midwayjs/orm';
import { Column,Index } from 'typeorm';
import { BaseEntity } from 'midwayjs-cool-core';

/**
 * 租机每日台账表
 */
@EntityModel('shuyou_rent_ledger_computer')
export class ShuyouRentLedgerComputerEntity extends BaseEntity {


  @Index()
  @Column({ comment: '电脑编号', length: 100 })
  pc_num: string;
  
  @Column({ type:'datetime', comment: '当时的起租时间' , nullable: true})
  rent_start_then: Date;

  @Column({ comment: '当时租机时常（天）', nullable: true })
  rent_duration_then: number;

  @Column({  type:'datetime', comment: '当时的到期时间', nullable: true })
  rent_end_then: Date;

  @Column({ type: "double",comment: '当时的租机价格', default: 0.00, scale: 2})
  rent_price_then: number;

  @Column({ type: "double",comment: '当天租金', default: 0.00, scale: 2})
  rent_price_day: number;

  @Column({ type: "double",comment: '当前租赁期内已产生多少租金', default: 0.00, scale: 2})
  rent_price_used_then: number;

  @Column({ comment: '游戏任务,多个游戏以英文逗号隔开', nullable: true })
  taskNameList_then: string;

  @Column({ comment: '负责人,多个负责人以英文逗号隔开', nullable: true })
  directorNameList_then: string;

  @Column({ comment: '备注', nullable: true })
  remark: string;

}
