Skip to content

Commit

Permalink
Scope for tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
woksin committed Oct 25, 2021
1 parent ab55c49 commit 229f8bb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Source/Runtime/Management/Aggregates/AggregateRoots.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ option go_package = "go.dolittle.io/contracts/runtime/aggregates/management";

message GetAllRequest {
// TODO: Do we want another kind of execution context here?
optional protobuf.Uuid tenantId = 1;
}

message EventSource {
string eventSourceId = 1;
uint64 aggregateRootVersion = 2;
message TenantScopedEventSource {
protobuf.Uuid tenantId = 1;
string eventSourceId = 2;
uint64 aggregateRootVersion = 3;
}

message AggregateRoot {
artifacts.Artifact aggregateRoot = 1;
string alias = 2;
repeated EventSource eventSources = 3;
repeated TenantScopedEventSource eventSources = 3;
}

message GetAllResponse {
Expand All @@ -37,6 +39,7 @@ message GetAllResponse {
message GetOneRequest {
// TODO: Do we want another kind of execution context here?
protobuf.Uuid aggregateRootId = 1;
optional protobuf.Uuid tenantId = 2;
}

message GetOneResponse {
Expand All @@ -47,6 +50,7 @@ message GetOneResponse {
message GetEventsRequest {
// TODO: Do we want another kind of execution context here?
events.Aggregate aggregate = 1;
protobuf.Uuid tenantId = 2;
}

message GetEventsResponse {
Expand Down

0 comments on commit 229f8bb

Please sign in to comment.