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
10 changes: 10 additions & 0 deletions db/migration/V0006__Alter_match_cycles_and_matches.sql
Comment thread
rootandroo marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

ALTER TABLE "match_cycles"
ADD COLUMN "is_draft" BOOLEAN NOT NULL DEFAULT TRUE,
DROP COLUMN "total_matched",
DROP COLUMN "total_members";
Comment thread
rootandroo marked this conversation as resolved.


ALTER TABLE "matches"
DROP COLUMN "feedback_a",
DROP COLUMN "feedback_b";
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,5 @@ public class Match {
@Setter
private String status;

@Setter
private String feedbackA;

@Setter
private String feedbackB;

private Instant createdAt;
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,4 @@ public class MatchCycle {

@Setter
private Instant runAt;

@Setter
private Integer totalMembers;

@Setter
private Integer totalMatched;
}
5 changes: 5 additions & 0 deletions src/main/java/org/patinanetwork/patchats/api/match/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@

## DTO

### Cycle field semantics

- `runAt`: when the system acts for the cycle — pairs are generated and notifications are sent out.
- `period`: which month the round is *for* (e.g. "2026-07"). Label used for display/filtering; normally derived from `runAt`, but may intentionally diverge if a run slips into another month.

`MatchStatus`: PENDING | CONFIRMED | COMPLETED | CANCELLED | SKIPPED

### Admin Match Cycles
Expand Down
Loading