33 lines
653 B
Java
33 lines
653 B
Java
package ru.soune.nocopy.entity.user;
|
|||
|
|
|
||
|
|
import jakarta.persistence.*;
|
||
|
|
import lombok.*;
|
||
|
|
import org.springframework.data.annotation.CreatedDate;
|
||
|
|
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "user_not_active")
|
||
|
|
@Getter
|
||
|
|
@Setter
|
||
|
|
@NoArgsConstructor
|
||
|
|
@AllArgsConstructor
|
||
|
|
@ToString
|
||
|
|
@Builder
|
||
|
|
public class UserNotActive {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@OneToOne(fetch = FetchType.LAZY)
|
||
|
|
private User user;
|
||
|
|
|
||
|
|
@CreatedDate
|
||
|
|
@Column(name = "created_at", updatable = false)
|
||
|
|
private LocalDateTime createdAt;
|
||
|
|
|
||
|
|
@Column(name = "blocked_until")
|
||
|
|
private LocalDateTime blockedUntil;
|
||
|
|
}
|