package com.ruoyi.mall.domain;

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

import java.time.LocalDateTime;

/**
 * 用户行为（关联搜索及推荐商品用）
 */
@Data
@TableName("User_behavior")
public class UserBehavior {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    private Long userId;
    private Long productId;
    private String behaviorType; // 1.浏览、2.购买、3.收藏等
    private LocalDateTime timestamp;
}
