From b6fc5783c952f9d3755d9e0f63102bb145212815 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 15 Jan 2023 21:32:31 +0100 Subject: [PATCH] add friend entity --- .../java/com/covas/Entity/FriendEntity.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/com/covas/Entity/FriendEntity.java diff --git a/src/main/java/com/covas/Entity/FriendEntity.java b/src/main/java/com/covas/Entity/FriendEntity.java new file mode 100644 index 0000000..43eebc2 --- /dev/null +++ b/src/main/java/com/covas/Entity/FriendEntity.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="friend") +public class FriendEntity extends PanacheMongoEntity { + + public String owner; + + public Collection friends; + + + public LocalDateTime created_at; + public LocalDateTime updated_at; + public LocalDateTime deleted_at; +}