package com.miaxis.school.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.miaxis.common.annotation.Excel;
import com.miaxis.common.core.domain.BaseBusinessEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * 驾校班型对象 school_class_type
 *
 * @author miaxis
 * @date 2021-01-15
 */
@Data
@TableName("school_class_type")
@ApiModel(value = "SchoolClassType", description = "驾校班型对象 school_class_type")
public class SchoolClassType extends BaseBusinessEntity{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    @ApiModelProperty(value = "$column.columnComment")
    private Long id;

    /**
     * 驾校全国统一编号
     */
    @TableField(value = "inscode")
    @ApiModelProperty(value = "驾校全国统一编号")
    private String inscode;

    /** 班级名称 */
    @Excel(name = "班级名称")
    @TableField("class_name")
    @ApiModelProperty(value = "班级名称")
    private String className;

    /** 总价 */
    @Excel(name = "总价")
    @TableField("total_price")
    @ApiModelProperty(value = "总价")
    private Long totalPrice;

    /** 学时 */
    @Excel(name = "学时")
    @TableField("train")
    @ApiModelProperty(value = "学时")
    private Long train;

    /** 车型 */
    @Excel(name = "车型")
    @TableField("pxcx")
    @ApiModelProperty(value = "车型")
    private String pxcx;

    /** 收费方式 1:一次性 2:先学后付 3:计时收费 */
    @Excel(name = "收费方式 1:一次性 2:先学后付 3:计时收费")
    @TableField("pay_type")
    @ApiModelProperty(value = "收费方式 1:一次性 2:先学后付 3:计时收费")
    private Long payType;

    /** 每分钟多少钱 */
    @Excel(name = "每分钟多少钱")
    @TableField("min_price")
    @ApiModelProperty(value = "每分钟多少钱")
    private Long minPrice;

    /** 科目一理论时间 */
    @Excel(name = "科目一理论时间")
    @TableField("one_time")
    @ApiModelProperty(value = "科目一理论时间")
    private Long oneTime;

    /** 科目二实操时间 */
    @Excel(name = "科目二实操时间")
    @TableField("two_time")
    @ApiModelProperty(value = "科目二实操时间")
    private Long twoTime;

    /** 科目三模拟时间 */
    @Excel(name = "科目三模拟时间")
    @TableField("three_simulation_time")
    @ApiModelProperty(value = "科目三模拟时间")
    private Long threeSimulationTime;

    /** 科目三实操时间 */
    @Excel(name = "科目三实操时间")
    @TableField("three_practice_time")
    @ApiModelProperty(value = "科目三实操时间")
    private Long threePracticeTime;

    /** 科目三理论时间 */
    @Excel(name = "科目三理论时间")
    @TableField("three_theory_time")
    @ApiModelProperty(value = "科目三理论时间")
    private Long threeTheoryTime;

    /** 班型照片URL */
    @Excel(name = "班型照片URL")
    @TableField("photo_url")
    @ApiModelProperty(value = "班型照片URL")
    private String photoUrl;

    /** 训练场ID */
    @Excel(name = "训练场ID")
    @TableField("region_id")
    @ApiModelProperty(value = "训练场ID")
    private Long regionId;

    /** PDF合同url */
    @Excel(name = "PDF合同url")
    @TableField("pdf_url")
    @ApiModelProperty(value = "PDF合同url")
    private String pdfUrl;

    /** 合同到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("contract_end_time")
    @ApiModelProperty(value = "合同到期时间")
    private Date contractEndTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
