Implement Distribution recording with quota enforcement (25g/day, 50g/30d monthly) #7

Open
opened 2026-04-06 11:23:07 +02:00 by pplate · 0 comments
Owner

Core distribution logic per CanG §19:

  • Distribution entity with quantity, member, strain, timestamp (immutable via @Column(updatable=false))
  • ComplianceService integration: checkDistributionAllowed() before persist
  • Rollback on quota violation with descriptive exception
  • REST: POST /api/v1/distributions
  • Full test coverage including quota boundary tests
Core distribution logic per CanG §19: - Distribution entity with quantity, member, strain, timestamp (immutable via @Column(updatable=false)) - ComplianceService integration: checkDistributionAllowed() before persist - Rollback on quota violation with descriptive exception - REST: POST /api/v1/distributions - Full test coverage including quota boundary tests
pplate added this to the Phase 0 — Foundation (Weeks 1-8) milestone 2026-04-06 11:23:07 +02:00
pplate added the compliancebackend labels 2026-04-06 11:23:07 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pplate/cannamanage#7