diff --git a/src/main/java/ru/ulstu/extractor/model/AntecedentValue.java b/src/main/java/ru/ulstu/extractor/model/AntecedentValue.java
new file mode 100644
index 0000000..1ed3473
--- /dev/null
+++ b/src/main/java/ru/ulstu/extractor/model/AntecedentValue.java
@@ -0,0 +1,23 @@
+package ru.ulstu.extractor.model;
+
+import javax.persistence.Entity;
+
+@Entity
+public class AntecedentValue extends BaseEntity {
+ private String antecedentValue;
+
+ public AntecedentValue() {
+ }
+
+ public AntecedentValue(String antecedentValue) {
+ this.antecedentValue = antecedentValue;
+ }
+
+ public String getAntecedentValue() {
+ return antecedentValue;
+ }
+
+ public void setAntecedentValue(String antecedentValue) {
+ this.antecedentValue = antecedentValue;
+ }
+}
diff --git a/src/main/java/ru/ulstu/extractor/model/Rule.java b/src/main/java/ru/ulstu/extractor/model/Rule.java
new file mode 100644
index 0000000..699e621
--- /dev/null
+++ b/src/main/java/ru/ulstu/extractor/model/Rule.java
@@ -0,0 +1,73 @@
+package ru.ulstu.extractor.model;
+
+import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
+
+@Entity
+public class Rule extends BaseEntity {
+ @ManyToOne
+ private AntecedentValue firstAntecedentValue;
+
+ @ManyToOne
+ private TimeSeries firstAntecedent;
+
+ @ManyToOne
+ private AntecedentValue secondAntecedentValue;
+
+ @ManyToOne
+ private TimeSeries secondAntecedent;
+
+ private String consequent;
+
+ public Rule() {
+ }
+
+ public Rule(Integer id, Integer version, AntecedentValue firstAntecedentValue, TimeSeries firstAntecedent, AntecedentValue secondAntecedentValue, TimeSeries secondAntecedent, String consequent) {
+ super(id, version);
+ this.firstAntecedentValue = firstAntecedentValue;
+ this.firstAntecedent = firstAntecedent;
+ this.secondAntecedentValue = secondAntecedentValue;
+ this.secondAntecedent = secondAntecedent;
+ this.consequent = consequent;
+ }
+
+ public AntecedentValue getFirstValue() {
+ return firstAntecedentValue;
+ }
+
+ public void setFirstValue(AntecedentValue firstAntecedentValue) {
+ this.firstAntecedentValue = firstAntecedentValue;
+ }
+
+ public TimeSeries getFirstAntecedent() {
+ return firstAntecedent;
+ }
+
+ public void setFirstAntecedent(TimeSeries firstAntecedent) {
+ this.firstAntecedent = firstAntecedent;
+ }
+
+ public AntecedentValue getSecondValue() {
+ return secondAntecedentValue;
+ }
+
+ public void setSecondValue(AntecedentValue secondAntecedentValue) {
+ this.secondAntecedentValue = secondAntecedentValue;
+ }
+
+ public TimeSeries getSecondAntecedent() {
+ return secondAntecedent;
+ }
+
+ public void setSecondAntecedent(TimeSeries secondAntecedent) {
+ this.secondAntecedent = secondAntecedent;
+ }
+
+ public String getConsequent() {
+ return consequent;
+ }
+
+ public void setConsequent(String consequent) {
+ this.consequent = consequent;
+ }
+}
diff --git a/src/main/resources/db/changelog-20221012_170000-schema.xml b/src/main/resources/db/changelog-20221012_170000-schema.xml
new file mode 100644
index 0000000..76ad715
--- /dev/null
+++ b/src/main/resources/db/changelog-20221012_170000-schema.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/db/changelog-master.xml b/src/main/resources/db/changelog-master.xml
index e2afa54..dfde9f7 100644
--- a/src/main/resources/db/changelog-master.xml
+++ b/src/main/resources/db/changelog-master.xml
@@ -14,4 +14,5 @@
+