new entity conversation

This commit is contained in:
Valentin CZERYBA 2023-01-30 23:01:06 +01:00
parent a88079f5fa
commit 809055f432
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,19 @@
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="conversation")
public class ConversationEntity extends PanacheMongoEntity {
public Collection<String> users;
public Short status;
public LocalDateTime created_at;
public LocalDateTime updated_at;
public LocalDateTime deleted_at;
}

View File

@ -105,8 +105,6 @@ public class UsersEntity extends PanacheEntityBase implements Serializable {
users.created_at = LocalDateTime.now();
users.updated_at = LocalDateTime.now();
users.description = "";
users.persist();
}
}