Sprint 6: report review workflow, CI/K8s, and client tabs.
Add coach review APIs, pose calibration thresholds, Gitea CI, Kubernetes skeleton, H5 practice page, and mini program tab bar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+18
-1
@@ -35,6 +35,20 @@ def seed() -> None:
|
||||
db.add(user)
|
||||
db.flush()
|
||||
|
||||
coach_hash = hash_phone("18600000001")
|
||||
coach = db.scalar(select(User).where(User.phone_hash == coach_hash))
|
||||
if not coach:
|
||||
coach = User(
|
||||
tenant_id=tenant.id,
|
||||
phone="18600000001",
|
||||
phone_hash=coach_hash,
|
||||
role="coach",
|
||||
status="active",
|
||||
consent_signed=True,
|
||||
)
|
||||
db.add(coach)
|
||||
db.flush()
|
||||
|
||||
child = db.scalar(
|
||||
select(Child).where(Child.parent_user_id == user.id, Child.name == "小明")
|
||||
)
|
||||
@@ -80,7 +94,10 @@ def seed() -> None:
|
||||
child_row = db.scalar(
|
||||
select(Child).where(Child.parent_user_id == user.id, Child.name == "小明")
|
||||
)
|
||||
print(f"Seed OK · tenant={tenant.id} user={user.id} child={child_row.id if child_row else '-'}")
|
||||
print(
|
||||
f"Seed OK · tenant={tenant.id} user={user.id} coach={coach.id if coach else '-'} "
|
||||
f"child={child_row.id if child_row else '-'}"
|
||||
)
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user