added phone for post
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.krylov.refound.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.krylov.refound.enums.PostStatus;
|
||||
import com.krylov.refound.enums.PostType;
|
||||
import jakarta.persistence.Column;
|
||||
@@ -47,5 +48,8 @@ public class Post {
|
||||
private PostStatus status;
|
||||
|
||||
@ManyToOne
|
||||
@JsonIgnore
|
||||
private User user;
|
||||
|
||||
private String phone;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user