Skip to content

feat(backend): add PostgreSQL persistence with TypeORM#41

Merged
Xuccessor merged 3 commits into
BountyOnChain:mainfrom
nanaf6203-bit:fix/issue-7-typeorm-postgres
May 19, 2026
Merged

feat(backend): add PostgreSQL persistence with TypeORM#41
Xuccessor merged 3 commits into
BountyOnChain:mainfrom
nanaf6203-bit:fix/issue-7-typeorm-postgres

Conversation

@nanaf6203-bit
Copy link
Copy Markdown

Closes #7

- Install @nestjs/typeorm, typeorm, pg
- Configure TypeOrmModule from DATABASE_URL env var
- Add Bounty entity (id, title, description, rewardAmount, deadline, status, ownerAddress, createdAt, updatedAt)
- Add Submission entity (id, bountyId, contributorAddress, link, status, createdAt)
- Add initial migration under apps/backend/src/migrations/
- Add docker-compose.yml for local Postgres development
- Use synchronize: false; run migrations via typeorm migration:run

Closes BountyOnChain#7
Copy link
Copy Markdown
Contributor

@Xuccessor Xuccessor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @nanaf6203-bit

@Xuccessor Xuccessor merged commit 8f462dc into BountyOnChain:main May 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(backend): add PostgreSQL persistence with TypeORM

2 participants