package com.sonic.cow.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 语音聊天记录
 * @author code
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "voice_chat_record", autoResultMap = true)
public class VoiceChatRecord {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * AI的id
     */
    private Long aiId;

    /**
     * 房间号
     */
    private String roomId;

    /**
     * 任务id
     */
    private String taskId;

    /**
     * 通话时长
     */
    private Long duration;

    /**
     * 通话状态 状态  1：通话中 2：打断  3: 结束
     */
    private Integer status;

    /**
     * 端点
     */
    private String endpoint;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime editTime;
}