feat: add student crm push

This commit is contained in:
Codex
2026-06-30 16:21:17 +08:00
parent d94b20b8ed
commit 7f97b52165
15 changed files with 774 additions and 27 deletions

View File

@@ -0,0 +1,9 @@
drop index if exists public.idx_crm_queue_tenant_record_id;
create index if not exists idx_crm_queue_tenant_record_id_lookup
on public.crm_webhook_queue(tenant_id, record_id, created_at desc)
where record_id is not null;
create index if not exists idx_crm_queue_student_push
on public.crm_webhook_queue(tenant_id, source, created_at desc)
where source = 'tenant.student.crm_push';