deltahacks / portal

The attendee & admin portal for DeltaHacks, the hackathon for change.
https://portal.deltahacks.com
MIT License
10 stars 2 forks source link

chore: upgrade to prisma v5 #150

Closed Krish120003 closed 1 year ago

Krish120003 commented 1 year ago

Summary by CodeRabbit

coderabbitai[bot] commented 1 year ago

Walkthrough

The recent changes encompass the creation of new ENUM types, tables, and unique indexes in the SQL migration file. The Prisma schema has been updated with changes in the datasource provider, removal of certain annotations, addition of new fields, and a new model.

Changes

File Summary
prisma/migrations/0_init/migration.sql Introduced two ENUM types, "Role" and "Status". Created five new tables: "Account", "Session", "User", "Review", "EventLog", and "VerificationToken". Added unique indexes and foreign key constraints.
prisma/schema.prisma Changed datasource provider from "postgresql" to "cockroachdb". Removed @db.Text annotation from several fields in the Account and User models. Added hacker and reviewer fields to the Review model. Introduced the VerificationToken model.

Poem

🍂 As the autumn leaves fall, we code with glee, 🍁

Changes abound, as you can clearly see. 🖥️

New tables and types, a schema so fine, 📚

In the world of Prisma, everything's divine. 🌐

From Postgres to Cockroach, a leap we've made, 🐇

Fear not, for our code is grade-A grade. 🏆

So here's to the changes, big and small, 🥂

In the world of code, we stand tall. 🌟


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. - `@coderabbitai resolve` to resolve all the CodeRabbit review comments. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`
netlify[bot] commented 1 year ago

Deploy Preview for profound-kringle-30b3e4 ready!

Name Link
Latest commit 508873bca3c5544f10f033fb44454a58ea18f312
Latest deploy log https://app.netlify.com/sites/profound-kringle-30b3e4/deploys/6545e3ae5771c30008c4e91b
Deploy Preview https://deploy-preview-150--profound-kringle-30b3e4.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.