feat(UserDocument): añadida variable deletedAt para borrado lógico

parent b5583e00
...@@ -7,6 +7,8 @@ import org.springframework.data.annotation.Id; ...@@ -7,6 +7,8 @@ import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed; import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
import java.time.LocalDate;
@Document(collection = "users") @Document(collection = "users")
@Getter @Getter
@Setter @Setter
...@@ -22,6 +24,7 @@ public class UserDocument { ...@@ -22,6 +24,7 @@ public class UserDocument {
private String password; private String password;
private Role role; private Role role;
private LocalDate deletedAt;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment