diff --git a/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/team/Team.java b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/team/Team.java new file mode 100644 index 0000000..889bdad --- /dev/null +++ b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/team/Team.java @@ -0,0 +1,20 @@ +package net.szymonsawicki.reactivetimesheetapp.domain.team; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import net.szymonsawicki.reactivetimesheetapp.domain.user.User; + +import java.util.List; + +@AllArgsConstructor +@NoArgsConstructor +@Builder +@EqualsAndHashCode +public class Team { + String id; + String name; + User lead; + List mambers; +} diff --git a/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/TimeEntry.java b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/TimeEntry.java new file mode 100644 index 0000000..1562ad2 --- /dev/null +++ b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/TimeEntry.java @@ -0,0 +1,22 @@ +package net.szymonsawicki.reactivetimesheetapp.domain.time_entry; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import net.szymonsawicki.reactivetimesheetapp.domain.time_entry.type.Category; + +import java.time.LocalDate; +import java.time.LocalTime; + +@AllArgsConstructor +@NoArgsConstructor +@Builder +@EqualsAndHashCode +public class TimeEntry { + LocalDate date; + LocalTime timeFrom; + LocalTime timeTo; + Category category; + String description; +} diff --git a/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/type/Category.java b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/type/Category.java new file mode 100644 index 0000000..529002d --- /dev/null +++ b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/time_entry/type/Category.java @@ -0,0 +1,5 @@ +package net.szymonsawicki.reactivetimesheetapp.domain.time_entry.type; + +public enum Category { + DEVELOPMENT, SUPPORT, MEETING, OTHER; +} diff --git a/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/User.java b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/User.java new file mode 100644 index 0000000..dd88ac3 --- /dev/null +++ b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/User.java @@ -0,0 +1,18 @@ +package net.szymonsawicki.reactivetimesheetapp.domain.user; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import net.szymonsawicki.reactivetimesheetapp.domain.user.type.Role; + +@AllArgsConstructor +@NoArgsConstructor +@Builder +@EqualsAndHashCode +public class User { + String username; + String password; + Role role; + String teamId; +} diff --git a/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/type/Role.java b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/type/Role.java new file mode 100644 index 0000000..00b743b --- /dev/null +++ b/src/main/java/net/szymonsawicki/reactivetimesheetapp/domain/user/type/Role.java @@ -0,0 +1,5 @@ +package net.szymonsawicki.reactivetimesheetapp.domain.user.type; + +public enum Role { + LEAD,DEVELOPER,TESTER; +}