feat(bot): quiet finance topics and support purchase payers

This commit is contained in:
2026-03-22 20:27:43 +04:00
parent 7d706eba07
commit 7665af0268
22 changed files with 1044 additions and 81 deletions

View File

@@ -0,0 +1,7 @@
ALTER TABLE "purchase_messages"
ADD COLUMN "payer_member_id" uuid REFERENCES "members"("id") ON DELETE SET NULL;
UPDATE "purchase_messages"
SET "payer_member_id" = "sender_member_id"
WHERE "payer_member_id" IS NULL
AND "sender_member_id" IS NOT NULL;