feat: setup admin JSON generation and pdf viewer for free plan DPPs
This commit is contained in:
@@ -62,6 +62,56 @@ def seed_local_database():
|
||||
)
|
||||
session.add(pro_student)
|
||||
|
||||
# Neha Verma — full AI Coach demo profile for manager presentations
|
||||
neha_id = UUID("33333333-3333-3333-3333-333333333333")
|
||||
neha_student = models.User(
|
||||
id=neha_id,
|
||||
phone="6666666666",
|
||||
email="neha@pragativeer.com",
|
||||
password_hash="mock_hash",
|
||||
name="Neha Verma",
|
||||
student_class=models.ClassEnum.TWELFTH,
|
||||
medium=models.MediumEnum.ENGLISH,
|
||||
target_exam=models.ExamEnum.NEET,
|
||||
school="Delhi Public School, R.K. Puram",
|
||||
city="New Delhi",
|
||||
state="Delhi",
|
||||
tier=models.TierEnum.AI_COACH,
|
||||
trial_end=None,
|
||||
subscription_end=datetime.utcnow() + timedelta(days=345),
|
||||
streak_count=62,
|
||||
longest_streak=62,
|
||||
last_active=datetime.utcnow()
|
||||
)
|
||||
session.add(neha_student)
|
||||
|
||||
# Seed Neha's Subscription record
|
||||
neha_subscription = models.Subscription(
|
||||
id=uuid4(),
|
||||
user_id=neha_id,
|
||||
tier=models.TierEnum.AI_COACH,
|
||||
billing_cycle="Annual",
|
||||
start_date=datetime.utcnow() - timedelta(days=20),
|
||||
end_date=datetime.utcnow() + timedelta(days=345),
|
||||
amount=1199900, # ₹11,999 in paise
|
||||
payment_id="PAY_NEHA_DEMO_001",
|
||||
status="Active",
|
||||
auto_renew=True,
|
||||
)
|
||||
session.add(neha_subscription)
|
||||
|
||||
# Seed Neha's Transaction record
|
||||
neha_txn = models.Transaction(
|
||||
id=uuid4(),
|
||||
user_id=neha_id,
|
||||
amount=11999.0,
|
||||
tier="Al_Coach",
|
||||
status="Success",
|
||||
created_at=datetime.utcnow() - timedelta(days=20),
|
||||
)
|
||||
session.add(neha_txn)
|
||||
|
||||
|
||||
student_id = UUID("b0e17378-864d-439e-8806-708dc48a891b")
|
||||
student_user = models.User(
|
||||
id=student_id,
|
||||
|
||||
Reference in New Issue
Block a user