Sprint 6: report review workflow, CI/K8s, and client tabs.
CI / api-test (push) Has been cancelled
CI / web-build (push) Has been cancelled

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:
john
2026-07-23 11:44:11 +08:00
parent 1aaef71f52
commit a400130c67
27 changed files with 636 additions and 27 deletions
+18 -1
View File
@@ -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()