| package com.example.g8backend.entity; |
| |
| import java.sql.Timestamp; |
| |
| public class PostLike { |
| |
| private Long userId; |
| private Long postId; |
| private Timestamp createdAt; |
| |
| public PostLike(Long userId, Long postId) { |
| this.userId = userId; |
| this.postId = postId; |
| this.createdAt = new Timestamp(System.currentTimeMillis()); |
| } |
| |
| // Getters and Setters |
| public Long getUserId() { |
| return userId; |
| } |
| |
| public void setUserId(Long userId) { |
| this.userId = userId; |
| } |
| |
| public Long getPostId() { |
| return postId; |
| } |
| |
| public void setPostId(Long postId) { |
| this.postId = postId; |
| } |
| |
| public Timestamp getCreatedAt() { |
| return createdAt; |
| } |
| |
| public void setCreatedAt(Timestamp createdAt) { |
| this.createdAt = createdAt; |
| } |
| } |