package com.cyksj.model.dto;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

/*
 *项目名: netflix
 *文件名: QuestionnaireView
 *创建者: JavaZou
 *创建时间:2023/6/13 11:13
 */
@Getter
@Setter
@SearchBean(tables = "form_fields_default fd left join form_fields ff on ff.id = fd.fields_id",
		where = "ff.deleted is true")
public class QuestionnaireView {

	@DbField("fd.fields_id")
	private Long fieldsId;

	@DbField("fd.promotion_id")
	private Long promotionId;

	@DbField("fd.fields_name")
	private String fieldsName;

	@DbField("fd.value")
	private String value;

	@DbField("ff.data_type")
	private Integer dataType;

	@DbField("ff.fields_entry_type")
	private Integer fieldsEntryType;

	@DbField("ff.max_length")
	private Integer maxLength;

	@DbField("ff.show_table")
	private Integer showTable;

	@JsonIgnore
	@DbField("ff.sorted")
	private Integer sorted;
}
