package com.ruoyi.system.domain.fieldchangerecord;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 字段级变更记录。
 *
 * <p>对应数据库表 {@code data_field_change_record}。</p>
 *
 * <ul>
 *     <li>{@link #subjectType} 取值见 {@link com.ruoyi.system.domain.changerecord.enums.SubjectType}。</li>
 *     <li>{@link #fieldCode} 取值见
 *         {@link com.ruoyi.system.domain.fieldchangerecord.enums.FieldCode}。</li>
 *     <li>{@link #operationType} 仅会是 1（INSERT）或 2（UPDATE）；DELETE 不进本表。</li>
 *     <li>{@link #oldValue} / {@link #newValue} 对于图片字段直接存真实 URL；对于
 *         {@code BE_YEAR_SELL} 存 {@code "year=2025;value=523.50"} 形式。</li>
 * </ul>
 */
@Data
public class DataFieldChangeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private String subjectType;

    private String subjectId;

    private String fieldCode;

    private String oldValue;

    private String newValue;

    private Integer operationType;

    private Date operationTime;
}
