package com.sino.mci.channel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sino.mci.shared.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 会话表（mci_conversation）。
 * <p>
 * 该表在 V15 已按 create_time 做 RANGE 月分区；MySQL 分区表不支持数据库级外键，
 * 因此与会话相关的外键已在 V15 全部移除。引用完整性由应用层（MyBatis-Plus 逻辑删除 + 业务校验）维护。
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mci_conversation")
public class Conversation extends BaseEntity {

    private String tenantCode;
    private Integer conversationType;
    private String channelType;
    private String channelConversationId;
    private Long ownerAccountId;
    private Long subjectId;
    private String conversationName;
    private Integer createSource;
    private Long createTaskId;
    private Long institutionId;
    private Long supplierId;
    private Long contractId;
    private String channelCode;
    private String receiveConfig;
    private Integer status;
}
