Leonardo
a73b82fa86
freemium F1: enforcement de limite de pacientes (schema-per-tenant)
...
- therapist_free ganha max_patients=20 (clinic_free ja tinha 30)
- trigger BEFORE INSERT em patients le plan_features.limits em runtime,
resolve tenant por TG_TABLE_SCHEMA, plano ativo (clinica via tenant_id +
pessoal via owner user_id), conta vivos (status<>Arquivado) e da RAISE
PLAN_LIMIT_REACHED|patients|<n>
- helpers tenant_active_plan_id / plan_feature_limit (globais, sobrevivem F6.3)
- wiring: tenants novos ganham via trg_attach_business_triggers; 9 existentes backfill
- testado: clinic_free bloqueia em 30, therapist_free em 20, PRO ilimitado (rollback)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-13 18:05:19 -03:00
..
2026-03-25 08:39:45 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-03-30 14:08:19 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 15:42:46 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-19 22:00:06 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:05:24 -03:00
2026-04-23 07:39:41 -03:00
2026-04-23 07:49:09 -03:00
2026-04-23 09:21:29 -03:00
2026-04-23 09:25:03 -03:00
2026-04-23 10:17:41 -03:00
2026-04-23 11:51:55 -03:00
2026-04-23 13:54:53 -03:00
2026-04-23 22:25:33 -03:00
2026-04-23 22:25:33 -03:00
2026-04-23 22:25:33 -03:00
2026-04-23 22:31:15 -03:00
2026-04-26 08:10:53 -03:00
2026-04-28 17:12:25 -03:00
2026-05-04 11:41:19 -03:00
2026-05-06 09:11:55 -03:00
2026-05-11 16:56:59 -03:00
2026-05-19 08:31:18 -03:00
2026-05-19 08:31:18 -03:00
2026-05-19 08:31:18 -03:00
2026-05-19 08:31:18 -03:00
2026-05-19 16:23:42 -03:00
2026-05-21 04:19:45 -03:00
2026-05-21 04:19:45 -03:00
2026-05-21 04:19:45 -03:00
2026-05-21 04:19:45 -03:00
2026-05-21 04:20:33 -03:00
2026-05-21 04:20:52 -03:00
2026-05-21 04:20:52 -03:00
2026-05-21 04:21:03 -03:00
2026-05-21 04:21:03 -03:00
2026-05-21 04:35:35 -03:00
2026-05-21 04:39:05 -03:00
2026-05-21 04:49:27 -03:00
2026-05-21 05:05:17 -03:00
2026-05-21 11:26:21 -03:00
2026-06-12 11:58:46 -03:00
2026-06-12 11:58:46 -03:00
2026-06-12 11:58:46 -03:00
2026-06-12 11:58:46 -03:00
2026-06-12 11:58:46 -03:00
2026-06-12 11:58:46 -03:00
2026-06-13 04:44:59 -03:00
2026-06-13 09:09:46 -03:00
2026-06-13 09:25:25 -03:00
2026-06-13 09:41:03 -03:00
2026-06-13 12:57:43 -03:00
2026-06-13 18:05:19 -03:00
2026-03-30 14:08:19 -03:00