Add generation_usage table and per-request logging middleware for billing metering #1094
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1094
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a database migration for a
generation_usagetable with columns: id, user_id, subscription_id, document_type, character_count, created_at. Add middleware that runs AFTER /api/generate completes successfully and inserts a row into this table. This enables billing metering and usage-based pricing.Acceptance criteria:
Generated by CEO Planner (priority: 3)