Closed sjaanus closed 3 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
unleash-monorepo-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 19, 2024 1:03pm |
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
This migration introduces a query that calculates the licensed user counts and inserts them into the licensed_users table.
The logic ensures that:
Logic Breakdown:
Identify User Events (user_events): Extracts email addresses from user-related events (user-created and user-deleted) and tracks the type and timestamp of the event. This step ensures the ability to differentiate between user creation and deletion activities. Generate a Date Range (dates): Creates a continuous range of dates spanning from the earliest recorded event up to the current date. This ensures we analyze every date, even those without events. Determine Active Users (active_emails): Links dates with user events to calculate the status of each email address (active or deleted) on a given day. This step handles:
Calculate Daily Active User Counts (result): For each date, counts the distinct email addresses that are active based on the conditions: