package com.ym.mec.biz.dal.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.ym.mec.common.enums.BaseEnum;

/**
 * 对应数据库表(sys_user_contracts):
 */
public class SysUserContracts {

	public enum ContractType implements BaseEnum<String, ContractType> {

		REGISTER("注册"),
		INSTRUMENT("乐器借用"),
		COURSES("课程购买"),
		VIP_COURSES("VIP课程购买"),
		PRACTICE("网管课购买"),
		PRODUCT("产品");

		private String desc;

		private ContractType(String desc) {
			this.desc = desc;
		}

		@Override
		public String getCode() {
			return name();
		}

		public String getDesc() {
			return desc;
		}
	}

	/**  */
	private Long id;

	/**  */
	private Integer userId;

	/** 合同号 */
	private String contractNo;

	/** 协议类型 */
	private ContractType type;

	/** 协议地址 */
	private String url;

	/** 备注 */
	private String memo;

	/** 创建时间 */
	private java.util.Date createTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public String getContractNo() {
		return this.contractNo;
	}

	public void setType(ContractType type) {
		this.type = type;
	}

	public ContractType getType() {
		return this.type;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return this.url;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
