diff --git a/src/main/java/ru/ulstu/deadline/model/Deadline.java b/src/main/java/ru/ulstu/deadline/model/Deadline.java
index 5ab9f47..4dfebef 100644
--- a/src/main/java/ru/ulstu/deadline/model/Deadline.java
+++ b/src/main/java/ru/ulstu/deadline/model/Deadline.java
@@ -20,7 +20,7 @@ public class Deadline extends BaseEntity {
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date date;
- private String executor;
+ private Integer executor;
private Boolean done;
public Deadline() {
@@ -31,7 +31,7 @@ public class Deadline extends BaseEntity {
this.description = description;
}
- public Deadline(Date deadlineDate, String description, String executor, Boolean done) {
+ public Deadline(Date deadlineDate, String description, Integer executor, Boolean done) {
this.date = deadlineDate;
this.description = description;
this.executor = executor;
@@ -42,7 +42,7 @@ public class Deadline extends BaseEntity {
public Deadline(@JsonProperty("id") Integer id,
@JsonProperty("description") String description,
@JsonProperty("date") Date date,
- @JsonProperty("executor") String executor,
+ @JsonProperty("executor") Integer executor,
@JsonProperty("done") Boolean done) {
this.setId(id);
this.description = description;
@@ -67,11 +67,11 @@ public class Deadline extends BaseEntity {
this.date = date;
}
- public String getExecutor() {
+ public Integer getExecutor() {
return executor;
}
- public void setExecutor(String executor) {
+ public void setExecutor(Integer executor) {
this.executor = executor;
}
diff --git a/src/main/resources/db/changelog-20190517_000001-schema.xml b/src/main/resources/db/changelog-20190517_000001-schema.xml
new file mode 100644
index 0000000..73c6435
--- /dev/null
+++ b/src/main/resources/db/changelog-20190517_000001-schema.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
diff --git a/src/main/resources/db/changelog-master.xml b/src/main/resources/db/changelog-master.xml
index 1cab67b..d81f1cb 100644
--- a/src/main/resources/db/changelog-master.xml
+++ b/src/main/resources/db/changelog-master.xml
@@ -44,4 +44,5 @@
+
\ No newline at end of file