package com.hotent.surveyinfo.model.dto;

import java.util.Date;
import java.util.List;
import java.util.Map;

// ... existing code ...
public class CostSurveyData {
//    CREATE TABLE fixed_table_data (
//            id VARCHAR(64) PRIMARY KEY,
//    survey_template_id BIGINT,
//    row_num INT,
//    cell_code VARCHAR(50),
//    value TEXT,
//    unit VARCHAR(50),
//    create_time DATETIME DEFAULT CURRENT_TIMESTAMP,
//    update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
//    INDEX idx_survey_template_id (survey_template_id),
//    INDEX idx_cell_code (cell_code)
//);
    private String id;
    private Long surveyTemplateId;
    private String templateType; // 单记录/固定表/动态表
    private Map<String, Object> fields; // 字段数据

    public List<Map<String, Object>> getRows() {
        return rows;
    }

    public void setRows(List<Map<String, Object>> rows) {
        this.rows = rows;
    }

    private List<Map<String, Object>> rows; // 行数据
    private Date createTime;
    private String createBy;
    private Date updateTime;
    private String updateBy;

    public String getId() {
        return id;
    }

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

    public Long getSurveyTemplateId() {
        return surveyTemplateId;
    }

    public void setSurveyTemplateId(Long surveyTemplateId) {
        this.surveyTemplateId = surveyTemplateId;
    }

    public String getTemplateType() {
        return templateType;
    }

    public void setTemplateType(String templateType) {
        this.templateType = templateType;
    }

    public Map<String, Object> getFields() {
        return fields;
    }

    public void setFields(Map<String, Object> fields) {
        this.fields = fields;
    }

    public Date getCreateTime() {
        return createTime;
    }

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

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    // getter and setter methods
}
