Skip to content

> feat(subscriptions): implement fan-to-creator subscription API#33

Merged
aji70 merged 1 commit into
MyFanss:mainfrom
observerr411:feature/fan-creator-subscriptions
Jun 19, 2026
Merged

> feat(subscriptions): implement fan-to-creator subscription API#33
aji70 merged 1 commit into
MyFanss:mainfrom
observerr411:feature/fan-creator-subscriptions

Conversation

@observerr411

Copy link
Copy Markdown
Contributor
  • Add Subscription entity with fanId, creatorId, status, subscribedAt, cancelledAt
  • Unique constraint on fan+creator pair; re-subscribe reactivates existing row
  • POST /subscriptions — fan subscribes to creator (409 on duplicate, 400 on self-subscribe)
  • DELETE /subscriptions/:creatorId — fan cancels active subscription
  • GET /subscriptions/me — fan lists active subscriptions (paginated)
  • GET /creators/me/subscribers — creator lists their subscribers (paginated)
  • Add migration 1769040000000-CreateSubscriptions
  • 14 unit tests + 11 e2e tests, all passing

closes #21

@aji70 aji70 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

@aji70 aji70 merged commit ffa61ea into MyFanss:main Jun 19, 2026
1 check passed
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.

Implement Fan-to-Creator Subscription API (Stub)

2 participants