diff --git a/server/libs/embedded/embedded-configuration/embedded-configuration-api/src/main/java/com/bytechef/embedded/configuration/domain/IntegrationWorkflow.java b/server/libs/embedded/embedded-configuration/embedded-configuration-api/src/main/java/com/bytechef/embedded/configuration/domain/IntegrationWorkflow.java index bb403776ed..3a2a2e5bdc 100644 --- a/server/libs/embedded/embedded-configuration/embedded-configuration-api/src/main/java/com/bytechef/embedded/configuration/domain/IntegrationWorkflow.java +++ b/server/libs/embedded/embedded-configuration/embedded-configuration-api/src/main/java/com/bytechef/embedded/configuration/domain/IntegrationWorkflow.java @@ -16,8 +16,14 @@ package com.bytechef.embedded.configuration.domain; +import java.time.LocalDateTime; import java.util.Objects; +import org.springframework.data.annotation.CreatedBy; +import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.Id; +import org.springframework.data.annotation.LastModifiedBy; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.annotation.Version; import org.springframework.data.relational.core.mapping.Column; import org.springframework.data.relational.core.mapping.Table; @@ -42,6 +48,25 @@ public final class IntegrationWorkflow { @Column("workflow_reference_code") private String workflowReferenceCode; + @CreatedBy + @Column("created_by") + private String createdBy; + + @Column("created_date") + @CreatedDate + private LocalDateTime createdDate; + + @Column("last_modified_by") + @LastModifiedBy + private String lastModifiedBy; + + @Column("last_modified_date") + @LastModifiedDate + private LocalDateTime lastModifiedDate; + + @Version + private int version; + public IntegrationWorkflow() { } @@ -97,6 +122,26 @@ public String getWorkflowReferenceCode() { return workflowReferenceCode; } + public String getCreatedBy() { + return createdBy; + } + + public LocalDateTime getCreatedDate() { + return createdDate; + } + + public String getLastModifiedBy() { + return lastModifiedBy; + } + + public LocalDateTime getLastModifiedDate() { + return lastModifiedDate; + } + + public int getVersion() { + return version; + } + public void setIntegrationVersion(int integrationVersion) { this.integrationVersion = integrationVersion; } @@ -109,6 +154,10 @@ public void setWorkflowReferenceCode(String workflowReferenceCode) { this.workflowReferenceCode = workflowReferenceCode; } + public void setVersion(int version) { + this.version = version; + } + @Override public String toString() { return "IntegrationWorkflow{" + @@ -117,6 +166,11 @@ public String toString() { ", integrationVersion=" + integrationVersion + ", workflowId='" + workflowId + '\'' + ", workflowReferenceCode='" + workflowReferenceCode + '\'' + + ", createdBy='" + createdBy + '\'' + + ", createdDate=" + createdDate + + ", lastModifiedBy='" + lastModifiedBy + '\'' + + ", lastModifiedDate=" + lastModifiedDate + + ", version=" + version + '}'; } } diff --git a/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183100_embedded_configuration_added_integration_workflow_constraints.xml b/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183100_embedded_configuration_added_integration_workflow_constraints.xml new file mode 100644 index 0000000000..5836f179ab --- /dev/null +++ b/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183100_embedded_configuration_added_integration_workflow_constraints.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183110_embedded_configuration_dropped_project_workflow_default_values.xml b/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183110_embedded_configuration_dropped_project_workflow_default_values.xml new file mode 100644 index 0000000000..5dc88301ad --- /dev/null +++ b/server/libs/embedded/embedded-configuration/embedded-configuration-service/src/main/resources/config/liquibase/changelog/embedded/configuration/20240604183110_embedded_configuration_dropped_project_workflow_default_values.xml @@ -0,0 +1,13 @@ + + + + + + + + + +