package cn.axzo.msg.center.domain.entity;

import cn.axzo.msg.center.domain.persistence.BaseEntityExt;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author cold_blade
 * @date 2023/10/21
 * @version 1.0
 */
@Setter
@Getter
@TableName("relation_template_map")
public class RelationTemplateMap extends BaseEntityExt<RelationTemplateMap> implements Serializable {

    private static final long serialVersionUID = 2716916154882729387L;

    /**
     * 新消息模板编码
     */
    private String templateCode;
    /**
     * 原有的模板关联关系id
     */
    private Long originalRelationId;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
