-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Beta-CampaignCampaign: Beta-CampaignCampaign: Beta-Campaign
Description
Initialize NestJS Database Integration
- Name / Title: Initialize Backend Database Configuration and Environment
- Complexity: Medium
- Task Type: Backend
- Description: The backend already has TypeORM configured in
app.module.ts. This task involves generating and running the database migrations for the new fields added in Task 03 (e.g.,walletAddressinUser). Also, ensure the local Docker/Postgres environment is fully documented in.env.example. - Technical Requirement: Node.js, NestJS, TypeScript, TypeORM Migrations, PostgreSQL.
- Estimated time to deliver: 4 hours
- Acceptance criteria:
- Database migrations are successfully generated and run without error.
- The
UserandCoursetables in the local Postgres DB reflect the new Web3-aware columns. .env.examplespecifies the correct DB connection variables for a local Postgres instance.
- MUST DOs:
- Use TypeORM CLI to generate the migration file (
npm run typeorm migration:generate). - Do not use
synchronize: truein production configuration. - Enforce strict typing on entity properties.
- Use TypeORM CLI to generate the migration file (
- References:
- Repo:
skillcert-backend-server - Files:
src/app.module.tssrc/users/entities/user.entity.tspackage.json
- Repo:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Beta-CampaignCampaign: Beta-CampaignCampaign: Beta-Campaign