parent
f76864893e
commit
f3cb94774d
@ -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…
Reference in new issue