package de.w665.biblenotes.db.entity; import jakarta.persistence.*; import lombok.*; import java.time.LocalDateTime; @Entity @Table(name = "user_logins") @Getter @Setter @NoArgsConstructor @AllArgsConstructor public class UserLogin { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(nullable = false) private Long userId; @Column(nullable = false) private LocalDateTime loginTime; @Column(nullable = false) private String loginIp; }