feat(payments): subscription data model and plan settings
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Is your feature request related to a problem? Please describe.
Admission is a one-time boolean (users.is_admitted). There is nowhere to record a paid period, a plan, or when access ends, so recurring billing and tiered access (#673) cannot be built. This is the first, behaviour-neutral step.
Describe the solution you'd like
- A
user_subscriptionstable (pubkey, plan id, status, period start/end, grace end, cancel-at-period-end) and theinvoicescolumnsplan_id,period_start,period_end, via a migration. A subscription is keyed by pubkey, so no separate subscription id is needed. payments.subscriptionPlans[]in settings (id, price, interval, grace period, per-plan limits), with types, defaults (empty list), validation invalidateSettings, andCONFIGURATION.mddocs.IUserSubscriptionRepository(find by pubkey, upsert, list due for renewal/expiry) and the invoice repository/Invoicetype changes, with unit tests.- The migration grandfathers every existing
is_admitteduser onto a non-expiring plan so enabling plans later never locks anyone out. - No change to runtime behaviour: with no plans configured the relay behaves exactly as today.
Additional context
- Design: #673. Earlier groundwork for the same layer.
- 主要言語
- TypeScript
- スター
- 829
- フォーク
- 234
- 平均マージ
- 18時間 43分
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cameri/nostream のほかの issue
-
Website
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
documentation Website
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
fix(website): update operator console film with fresh notifications screenshot対応中かも @Ferryx349 が今日担当しました。 オープンbug Website
cameri/nostream#893 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
cameri/nostream の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Koenkk/zigbee-herdsman-converters#13540 ·
メンテナーはふだん 1 日以内に返信
-
check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
iptv-org/iptv#55821 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/busola/ux
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
kyma-project/busola#5442 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vercel-labs/wterm#246 ·
メンテナーはふだん 1 日以内に返信