Changes between Initial Version and Version 1 of PurchasingSubscription


Ignore:
Timestamp:
01/10/26 18:07:04 (7 days ago)
Author:
221296
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PurchasingSubscription

    v1 v1  
     1== Purchasing a Subscription
     2
     3==== Actors: **Registered Boss**
     4
     5**1.** The user selects a subscription plan.
     6
     7**2.** The system creates an active subscription.
     8
     9**3.** The payment is recorded.
     10
     11
     12{{{#!sql
     13INSERT INTO user_subscription (user_id, plan_id, start_date, end_date, status)
     14VALUES (1, 2, CURRENT_DATE, CURRENT_DATE + INTERVAL '6 months', 'ACTIVE');
     15
     16INSERT INTO payment (user_id, subscription_id, amount)
     17VALUES (1, 1, 49.99);
     18
     19
     20}}}