You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name / Title: Design Backend Database Schema for SkillCert
Complexity: Medium
Task Type: Architecture / Database
Description: The NextJS backend already uses TypeORM and PostgreSQL, with User (src/users/entities/user.entity.ts) and Course (src/courses/entities/course.entity.ts) entities defined. However, since we are moving data off-chain, we need to extend this existing schema. Specifically, the User entity is missing a walletAddress field to uniquely identify them on the Stellar blockchain, and Course needs mapping fields for the Soroban contract IDs.
Design Relational/Document Database Schema
User(src/users/entities/user.entity.ts) andCourse(src/courses/entities/course.entity.ts) entities defined. However, since we are moving data off-chain, we need to extend this existing schema. Specifically, theUserentity is missing awalletAddressfield to uniquely identify them on the Stellar blockchain, andCourseneeds mapping fields for the Soroban contract IDs.UserandCourseentities.walletAddressfield as unique and nullable (for non-web3 users) inUser.courses,enrollments,reviews) to ensure they don't conflict with off-chain needs.skillcert-backend-serversrc/users/entities/user.entity.tssrc/courses/entities/course.entity.ts