master
Elliott LE GUEHENNEC 2 years ago
parent f76864893e
commit f3cb94774d

@ -16,7 +16,6 @@ public class Main {
MongoDatabase database = mongoClient.getDatabase("sample_mflix");
MongoCollection<Document> collection = database.getCollection("movies");
Document doc = collection.find(eq("title", "Back to the Future")).first();
if (doc != null) {

@ -0,0 +1,16 @@
package com.flagg10ma.taf.model;
import java.time.LocalDateTime;
import java.util.Collection;
public record Event(
String id,
String title,
String description,
User creator,
LocalDateTime startTime,
LocalDateTime endTime,
String colorCode,
Collection<Task> tasks
) {
}

@ -0,0 +1,9 @@
package com.flagg10ma.taf.model;
public record Label(
String id,
String title,
String description,
String colorCode
) {
}

@ -0,0 +1,17 @@
package com.flagg10ma.taf.model;
import java.time.LocalDate;
import java.util.Collection;
public record Task(
String id,
String title,
String description,
User creator,
LocalDate dateAssigned,
boolean delayed,
LocalDate dateCompleted,
Event event,
Collection<Label> labels
) {
}

@ -0,0 +1,11 @@
package com.flagg10ma.taf.model;
import java.util.Collection;
public record User(
String id,
String login,
String passwordHash,
Collection<Label> labels
) {
}
Loading…
Cancel
Save