Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider integration database schema #593

Closed
wants to merge 2 commits into from

Conversation

wcalderipe
Copy link
Collaborator

@wcalderipe wcalderipe commented Dec 3, 2024

This PR adds the initial database schema for doing custom provider integrations in the Vault.

It also adds a minor change to the format command to also format the Prisma schema to ensure code consistency.

See https://linear.app/narval/issue/NAR-1979

@wcalderipe wcalderipe self-assigned this Dec 3, 2024
Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devtool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 4:12pm
manager 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 4:12pm

updatedAt DateTime @updatedAt @map("updated_at")
revokedAt DateTime? @map("revoked_at")

counterparties ProviderAddressBook[]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"addressBookEntries" is the other option, but I found the term long. Happy to change it back.

label String?
credentials Json
status String
integrity String @map("_integrity")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Prisma doesn't let me name the column with an _ prefix.

Error: Prisma schema validation - (validate wasm)
Error code: P1012
error: Error validating: This line is not a valid field or attribute definition.
  -->  apps/vault/src/shared/module/persistence/schema/schema.prisma:111
   |
110 |   status      string
111 |   _integrity    string
112 |   createdAt   DateTime  @default(now()) @map("created_at")
   |

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.

1 participant