优化发布群租客清退与历史消息

This commit is contained in:
yml
2026-06-18 09:39:23 +08:00
parent 233920025e
commit f4361c9804
10 changed files with 325 additions and 33 deletions
@@ -54,6 +54,11 @@ WHERE g.code IN ('owner_onboarding', 'renter_handoff')
AND r.code = 'cs'
AND au.status = 'active';
INSERT INTO system_configs (`key`, `value`, description) VALUES
('chat.renter_retention_days_after_order_end', '5', '订单结束后租客保留在发布群的天数(3-7)')
ON DUPLICATE KEY UPDATE
description = VALUES(description);
-- +goose StatementEnd
-- +goose Down
@@ -65,5 +70,6 @@ DELETE rp FROM role_permissions rp
JOIN permissions p ON p.id = rp.permission_id
WHERE p.code = 'chat:manage';
DELETE FROM permissions WHERE code = 'chat:manage';
DELETE FROM system_configs WHERE `key` = 'chat.renter_retention_days_after_order_end';
-- +goose StatementEnd