-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
updatedAt DateTime @updatedAt @map("updated_at") | ||
revokedAt DateTime? @map("revoked_at") | ||
|
||
counterparties ProviderAddressBook[] |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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")
|
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