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

A question - @unique, @default, @relation{ references } #1497

Open
janbkrejci opened this issue Jul 13, 2024 · 2 comments
Open

A question - @unique, @default, @relation{ references } #1497

janbkrejci opened this issue Jul 13, 2024 · 2 comments

Comments

@janbkrejci
Copy link

Hello,

first of all, thanks for this magnificent code.

I wonder if there is any possible way to include information about @_unique-ness, functional default values (i.e. @_default(now()) and attributes that are involved in references (i.s. @_relation{ ... references: [id] } in the output?

Thanks in advance and best regards

Jan

@valentinpalkovic
Copy link
Owner

Hi @janbkrejci

This is yet not possible. But please feel free to contribute this feature!

@TMInnovations
Copy link

Had the same requirement last week and therefore wrote https://www.npmjs.com/package/prisma-generator-dmmf

It exports the raw prisma dmmf model as json file.

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

No branches or pull requests

3 participants