Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ erDiagram
timestamptz run_at "{NOT_NULL}"
integer total_members
integer total_matched
integer[] unmatched_id
}

matches {
Expand Down
Comment thread
rootandroo marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "match_cycles" DROP COLUMN "unmatched_id";
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package org.patinanetwork.patchats.api.match.db.models;

import java.time.Instant;
import java.util.List;
import java.util.UUID;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand All @@ -28,7 +26,4 @@ public class MatchCycle {

@Setter
private Integer totalMatched;

@Setter
private List<UUID> unmatchedIds;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public interface MatchCycleRepo {
* <li>period
* <li>totalMembers
* <li>totalMatched
* <li>unmatchedIds
* </ul>
* The id field will be auto-generated by the database.
*/
Expand All @@ -31,7 +30,6 @@ public interface MatchCycleRepo {
* <li>runAt
* <li>totalMembers
* <li>totalMatched
* <li>unmatchedIds
* </ul>
*/
Optional<MatchCycle> updateMatchCycle(MatchCycle matchCycle);
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/org/patinanetwork/patchats/api/match/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public class MatchCycleResponse {
private Instant runAt;
private Integer totalMembers;
private Integer totalMatched;
private List<String> unmatchedIds; // UUIDs
}

// admin detail — cycle + filtered matches
Expand All @@ -70,7 +69,6 @@ public class CreateMatchCycleRequest {
private String period; // optional
private Integer totalMembers;
private Integer totalMatched;
private List<String> unmatchedIds;
}

// PATCH /api/admin/match_cycles/{id}
Expand All @@ -79,7 +77,6 @@ public class UpdateMatchCycleRequest {
private String period;
private Integer totalMembers;
private Integer totalMatched;
private List<String> unmatchedIds;
}

// GET /api/admin/match_cycles (query params)
Expand Down
Loading