夜雨声烦 | 070c05a | 2025-05-13 20:33:50 +0800 | [diff] [blame^] | 1 | package com.example.g8backend.entity; |
| 2 | |
| 3 | import com.baomidou.mybatisplus.annotation.IdType; |
| 4 | import com.baomidou.mybatisplus.annotation.TableId; |
| 5 | import com.baomidou.mybatisplus.annotation.TableName; |
| 6 | import lombok.Data; |
| 7 | |
| 8 | import java.time.LocalDateTime; |
| 9 | |
| 10 | @Data |
| 11 | @TableName("post_ratings") |
| 12 | public class PostRating { |
| 13 | @TableId(type = IdType.INPUT) |
| 14 | private Long userId; |
| 15 | private Long postId; |
| 16 | private Integer rating; |
| 17 | private LocalDateTime ratedAt; |
| 18 | } |