package com.example.entity;

import java.time.LocalDateTime;

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

/**
 * 资源评分实体类
 */
@Data
@TableName("resource_rating")
public class ResourceRating {
    
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    /**
     * 资源ID
     */
    private Integer resourceId;
    
    /**
     * 患者ID
     */
    private Integer patientId;
    
    /**
     * 评分(1-5)
     */
    private Integer rating;
    
    /**
     * 评价内容
     */
    private String comment;
    
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    
    /**
     * 患者姓名 (非数据库字段)
     */
    @TableField(exist = false)
    private String patientName;
    
    @TableField(exist = false)
    private String resourceTitle;
} 