Skip to content

Conversation

@ricky-ultimate
Copy link
Owner

Pull Request: Set up PostgreSQL with Prisma as the ORM

This pull request sets up PostgreSQL with Prisma as the ORM. It includes:

  • Installing Prisma and initializing it
  • Defining Prisma models for Member, Project, and Event
  • Configuring PostgreSQL connection in .env file
  • Running initial Prisma migrations

Closes #1

- Updated the .env file to include SHADOW_DATABASE_URL for Prisma migrations.
- Created a new shadow database mtustemdb_shadow for Prisma to use during migrations.
- Granted necessary privileges to the database user for the shadow database.
- Modified schema.prisma to establish a many-to-many relationship between Project and Member models.

This change improves security by avoiding the need to grant CREATEDB permissions to the database user.
@ricky-ultimate ricky-ultimate merged commit ba6817a into master Jun 16, 2024
@ricky-ultimate ricky-ultimate deleted the setup-prisma branch June 16, 2024 11:29
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.

Issue 1: Set up PostgreSQL with Prisma as the ORM

1 participant