Skip to content

feat(types): add MongoDB schemas for promo codes and usages#77

Merged
Dobrunia merged 5 commits into
masterfrom
feat/promo-code
Jun 10, 2026
Merged

feat(types): add MongoDB schemas for promo codes and usages#77
Dobrunia merged 5 commits into
masterfrom
feat/promo-code

Conversation

@Dobrunia

Copy link
Copy Markdown
Member

Summary

Add shared MongoDB document types for the promo codes feature.

  • PromoCodeDBScheme — promo code definition linked to a tariff plan
  • PromoCodeUsageDBScheme — history of promo code applications per user/workspace
  • Export both interfaces from the package root (@hawk.so/types)

@Dobrunia Dobrunia requested a review from neSpecc June 10, 2026 16:07
Comment thread src/dbScheme/promoCode.ts Outdated
Comment thread src/dbScheme/promoCode.ts Outdated
Comment thread src/dbScheme/promoCodeUsage.ts
@Dobrunia Dobrunia merged commit dbdd9c2 into master Jun 10, 2026
1 of 3 checks passed
@Dobrunia Dobrunia deleted the feat/promo-code branch June 10, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants