From dcd00285f2e4aae2e08193d20e2c7b2c2931f1e7 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 16 Jan 2023 21:52:04 +0100 Subject: [PATCH] add entity blacklist --- .../com/covas/Entity/BlacklistEntity.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/com/covas/Entity/BlacklistEntity.java diff --git a/src/main/java/com/covas/Entity/BlacklistEntity.java b/src/main/java/com/covas/Entity/BlacklistEntity.java new file mode 100644 index 0000000..3dff23a --- /dev/null +++ b/src/main/java/com/covas/Entity/BlacklistEntity.java @@ -0,0 +1,20 @@ +package com.covas.Entity; + +import java.time.LocalDateTime; +import java.util.Collection; + +import io.quarkus.mongodb.panache.PanacheMongoEntity; +import io.quarkus.mongodb.panache.common.MongoEntity; + +@MongoEntity(collection="blacklist") +public class BlacklistEntity extends PanacheMongoEntity { + + public String owner; + + public Collection blocked; + public Short status; + + public LocalDateTime created_at; + public LocalDateTime updated_at; + public LocalDateTime deleted_at; +}