package cn.com.countrygarden.bi.main.model.mediaResource;

import cn.com.countrygarden.bi.main.util.entity.Audit;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name="t_media_order_bill")
@Data
public class MediaOrderBill  implements Audit {
	@Id
	public String orderBillId;//订单明细id
	@Column(name = "order_id")
	public Long orderId;//订单明细id
	@Column(name = "media_id")
	public String mediaId;//媒体资源id
	@Column(name = "prepare_start_date")
	public Date prepareStartDate;//预定开始时间
	@Column(name = "prepare_end_date")
	public Date prepareEndDate;//预定结束时间
	@Column(name = "lock_start_date")
	public Date lockStartDate;//锁定开始时间
	@Column(name = "lock_end_date")
	public Date lockEndDate;//锁定结束时间
	@Column(name = "use_start_date")
	public Date useStartDate;//使用开始时间
	@Column(name = "use_end_date")
	public Date useEndDate;//使用结束时间
	@Column(name = "final_date")
	public Date finalDate;//终止时间
	@Column(name = "is_final")
	public Integer isFinal;//是否终止
	@Column(name = "order_bill_start_date")
	private Date orderBillStartDate;
	@Column(name = "order_bill_end_date")
	private Date orderBillEndDate;
	@Column(name = "order_bill_unit_amount")
	private BigDecimal orderBillUnitAmount; // 单价(月)
	@Column(name = "order_bill_amount")
	private BigDecimal orderBillAmount;
	@Column(name = "sort")
	public Integer sort;
	@Column(name = "version")
	public Integer version;
	@Column(name = "is_delete")
	public Integer isDelete;
	@Column(name = "create_time")
	public Date createTime;
	@Column(name = "create_by")
	public String createBy;
	@Column(name = "create_by_name")
	public String createByName;
	@Column(name = "mod_time")
	public Date modTime;
	@Column(name = "mod_by")
	public String modBy;
	@Column(name = "mod_by_name")
	public String modByName;
	@Column(name = "cycle_status")
	public String cycleStatus;

}
