package com.lcrx.selector.entity.PO;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;


/**
 * @author ###
 */
@NoArgsConstructor
@Data
public class VariantTablePO implements Serializable {

    /**
     * tableName :
     * tableId : 1
     * data : {"constraintCharacteristicName":["###","###"],"constraintCharacterValues":[{"groupNumber":"1","characteristicValues":[{"characteristicName":"###","values":["",""]},{"characteristicName":"###","values":["",""]}]}]}
     */

    private String tableName;
    private int tableId;
    private DataBean data;

    @NoArgsConstructor
    @Data
    public static class DataBean implements Serializable {
        private List<String> constraintCharacteristicName;
        private List<ConstraintCharacteristicValuesBean> constraintCharacteristicValues;

        @NoArgsConstructor
        @Data
        public static class ConstraintCharacteristicValuesBean implements Serializable {
            /**
             * groupNumber : 1
             * characteristicValues : [{"characteristicName":"###","values":["",""]},{"characteristicName":"###","values":["",""]}]
             */

            private String groupNumber;
            private List<CharacteristicValuesBean> characteristicValues;

            @NoArgsConstructor
            @Data
            public static class CharacteristicValuesBean implements Serializable {
                /**
                 * characteristicName : ###
                 * values : ["",""]
                 */

                private String characteristicName;
                private List<String> values;
            }
        }
    }
}
