diff --git a/cameleer-server-app/src/main/resources/db/migration/V11__outbound_connections.sql b/cameleer-server-app/src/main/resources/db/migration/V11__outbound_connections.sql index aa9576b1..48c803cd 100644 --- a/cameleer-server-app/src/main/resources/db/migration/V11__outbound_connections.sql +++ b/cameleer-server-app/src/main/resources/db/migration/V11__outbound_connections.sql @@ -21,9 +21,9 @@ CREATE TABLE outbound_connections ( auth_config jsonb NOT NULL DEFAULT '{}', allowed_environment_ids uuid[] NOT NULL DEFAULT '{}', created_at timestamptz NOT NULL DEFAULT now(), - created_by uuid NOT NULL REFERENCES users(id), + created_by text NOT NULL REFERENCES users(user_id), updated_at timestamptz NOT NULL DEFAULT now(), - updated_by uuid NOT NULL REFERENCES users(id), + updated_by text NOT NULL REFERENCES users(user_id), CONSTRAINT outbound_connections_name_unique_per_tenant UNIQUE (tenant_id, name) ); diff --git a/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnection.java b/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnection.java index 1c281634..b37c1c0a 100644 --- a/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnection.java +++ b/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnection.java @@ -22,9 +22,9 @@ public record OutboundConnection( OutboundAuth auth, List allowedEnvironmentIds, Instant createdAt, - UUID createdBy, + String createdBy, Instant updatedAt, - UUID updatedBy + String updatedBy ) { public OutboundConnection { defaultHeaders = defaultHeaders == null ? Map.of() : Map.copyOf(defaultHeaders); diff --git a/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnectionService.java b/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnectionService.java index e0e22be6..05576668 100644 --- a/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnectionService.java +++ b/cameleer-server-core/src/main/java/com/cameleer/server/core/outbound/OutboundConnectionService.java @@ -4,9 +4,9 @@ import java.util.List; import java.util.UUID; public interface OutboundConnectionService { - OutboundConnection create(OutboundConnection draft, UUID actingUserId); - OutboundConnection update(UUID id, OutboundConnection draft, UUID actingUserId); - void delete(UUID id, UUID actingUserId); + OutboundConnection create(OutboundConnection draft, String actingUserId); + OutboundConnection update(UUID id, OutboundConnection draft, String actingUserId); + void delete(UUID id, String actingUserId); OutboundConnection get(UUID id); List list(); List rulesReferencing(UUID id);