{"_id":"@onozaty/prisma-db-comments-generator","_rev":"12-6773f81127ad647146678890b4edf569","name":"@onozaty/prisma-db-comments-generator","dist-tags":{"latest":"1.8.0"},"versions":{"1.0.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.0.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.0.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.js"},"dist":{"shasum":"6eedce8ad16e778e03598ed7c1b54e6a49897817","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.0.0.tgz","fileCount":18,"integrity":"sha512-A7yuLCe59ZD1KuDYkIWnGDYHbo++2IgLaVA8QNtSjnuXmCmpUIKFeCt50GRgGEpzuYQtZQ1mgpoDNvbSTYBD6w==","signatures":[{"sig":"MEYCIQD1M4IvfC6dF08a6h4AjOJP+EoNO7i7MMOENcNJ01wGEAIhAPuz0Kz5wfOa+hcOYmP+QoWomwsGvTtItYt0dpGFbCB7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43346},"gitHead":"826942be258461e639ffef4da6b6adea9411c194","scripts":{"lint":"eslint src/**","test":"jest","build":"tsc","format":"prettier --write src/**","prepare":"npm run build","db:reset":"prisma migrate reset","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && npm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0","@prisma/generator-helper":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","jest":"^29.7.0","eslint":"^8.57.0","prisma":"^5.0.0","globals":"^15.8.0","ts-jest":"^29.2.3","prettier":"^3.3.3","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.0","@prisma/client":"^5.0.0","typescript-eslint":"^7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.0.0_1722776384184_0.9587910086239324","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@onozaty/prisma-db-comments-generator","version":"1.0.1","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.0.1","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.js"},"dist":{"shasum":"3e9c366f89d7fc154938b293f54ffe21da2e3643","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.0.1.tgz","fileCount":18,"integrity":"sha512-Jd9aSz1LFF2uTKoGe4YXGtFkpn1YxCm+qaGN5J2/Agwg75y43UNeZxyAMPlq7rCEPGPwQeZc16Iklr3z2T/5UQ==","signatures":[{"sig":"MEUCICwihyS8UEZSTPhTQr71GQ6ILSmAwXF69qfI+Y2zd8asAiEA73Nv7Zhvy1UJUXf1Z14sAfdd0i9Cpk1XE57BwZ5McJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44350},"gitHead":"1e8cea1bb65d1a9cc5cf8b0b744e5f48f2d7be3a","scripts":{"lint":"eslint src/**","test":"jest","build":"tsc","format":"prettier --write src/**","prepare":"npm run build","db:reset":"prisma migrate reset","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && npm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0","@prisma/generator-helper":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","jest":"^29.7.0","eslint":"^8.57.0","prisma":"^5.0.0","globals":"^15.8.0","ts-jest":"^29.2.3","prettier":"^3.3.3","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.0","@prisma/client":"^5.0.0","typescript-eslint":"^7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.0.1_1722779159395_0.23450536273217915","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@onozaty/prisma-db-comments-generator","version":"1.0.2","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.0.2","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.js"},"dist":{"shasum":"010f2eabe551930f79855036fda38cf2f9c16b4b","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.0.2.tgz","fileCount":18,"integrity":"sha512-KNZMjPYx+hewBLDBPq7fh2Whght3NYsEwjp/ph7m8Q3EHS5rRamtC1nR48TEa3PQnxec7yN9QjhrmwSxwqo9YQ==","signatures":[{"sig":"MEUCIEqj+PQqliPSWzjDNF5n8+Yz6EyuQr93/diIhIh03WlHAiEA0mf68i/IuJ0rrHXjV3/w/Ue5bMuPoRBmJ8FNHgMM23A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50287},"gitHead":"12f9acf9f393c0af1d094245354671746b05e96c","scripts":{"lint":"eslint src/**","test":"jest","build":"tsc","format":"prettier --write src/**","prepare":"npm run build","db:reset":"prisma migrate reset","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && npm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0","@prisma/generator-helper":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","jest":"^29.7.0","eslint":"^8.57.0","prisma":"^5.0.0","globals":"^15.8.0","ts-jest":"^29.2.3","prettier":"^3.3.3","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.0","@prisma/client":"^5.0.0","typescript-eslint":"^7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.0.2_1729425783199_0.9938227100110248","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@onozaty/prisma-db-comments-generator","version":"1.0.3","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.0.3","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.js"},"dist":{"shasum":"80a98b211ffcd24e5c76d0659daad24377f7dc5d","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.0.3.tgz","fileCount":20,"integrity":"sha512-0AnbXNn8et9BCkTb/t/JGeBs5eWiKnWOXowrTvYie3VRAiDxCjndX7INO9VtgFpoYViNmEigxKS3b5nhuUskDw==","signatures":[{"sig":"MEYCIQDdifDSTd2YzEl23trJAXYE554GMfXztvaY+in2gUFUNAIhAK+jjQmGXNyOqz1HHqu+T7bLwR3h0u5iksT+Eu5L2GTb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69697},"gitHead":"50a13c15a0ba9139a4425707b8df2f3645935ea9","scripts":{"lint":"eslint src/**","test":"jest","build":"tsc","format":"prettier --write src/**","prepare":"npm run build","db:reset":"prisma migrate reset","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && npm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0","@prisma/generator-helper":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","jest":"^29.7.0","eslint":"^8.57.0","prisma":"^5.0.0","globals":"^15.8.0","ts-jest":"^29.2.3","prettier":"^3.3.3","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.0","@prisma/client":"^5.0.0","typescript-eslint":"^7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.0.3_1740400636563_0.16486414816848627","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.1.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.1.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.js"},"dist":{"shasum":"c4b19083adc34451d4bf25154bdae3c8006bd034","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.1.0.tgz","fileCount":15,"integrity":"sha512-+Lb6kZcMUo4/OXK+lvixQnM4XrF8A64qULHaCiPY228FnmGRCSLsMUlQifaewP7QR0rmHH5iSNO/TKX8Qsy7rg==","signatures":[{"sig":"MEQCIGgPfRHLRDXBvU9if4TgBVkzDY3b7hp0SwU9hDIQzXZTAiBe7eLpoIQhggF5FIejCfyjlcliR0PHMvAPFKX3ifhBQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30418},"gitHead":"53956f4ab47e86ee790de82ad3e1b461a0ac9168","scripts":{"lint":"eslint src/**","test":"jest","build":"tsc","format":"prettier --write src/**","prepare":"npm run build","db:reset":"prisma migrate reset","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && npm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0","@prisma/generator-helper":"^5.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.16.2","jest":"^29.7.0","eslint":"^8.57.0","prisma":"^5.0.0","globals":"^15.8.0","ts-jest":"^29.2.3","prettier":"^3.3.3","@eslint/js":"^9.8.0","typescript":"^5.5.4","@types/jest":"^29.5.12","@types/node":"^22.0.0","@prisma/client":"^5.0.0","typescript-eslint":"^7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.1.0_1742095721681_0.28809827128655074","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.2.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.2.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"3aba5a94f61147f5820d6d3eae39700be3b8017c","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.2.0.tgz","fileCount":5,"integrity":"sha512-P1Krc1jbqb43TqAZkU1tAKvEsA0G93hEm0e6T4/kLBW8A4XvfndJ212XOQ7HTPzhbpTc3lL+gIHNid9MHw1uPQ==","signatures":[{"sig":"MEUCIQCUHg55GA3dQs6IJ31UZroQboyKfWDji7MX7Wt7jOM+WQIgPDT8HylAQpBIzfDPOQnGexmq3oh8Emy6gTNcruLszYE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38368},"type":"module","_from":"file:onozaty-prisma-db-comments-generator-1.2.0.tgz","scripts":{"lint":"eslint src/**","test":"vitest run","build":"rm -rf dist/ && node build.js","format":"prettier --write src/**","db:reset":"prisma migrate reset","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/a8f2a8964639c33ff089567b4c4ea1eb/onozaty-prisma-db-comments-generator-1.2.0.tgz","_integrity":"sha512-P1Krc1jbqb43TqAZkU1tAKvEsA0G93hEm0e6T4/kLBW8A4XvfndJ212XOQ7HTPzhbpTc3lL+gIHNid9MHw1uPQ==","repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.2.0_1749131984270_0.4583530853721862","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.3.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.3.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"fa02b15e44bea5fe85292fd6df031186a474b594","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.3.0.tgz","fileCount":5,"integrity":"sha512-GKucXOnXH4ZeQ0tZULHQKGuutyFktwxikEWLxy3YhbE5Z0C5LtEhU7tQFdHEojJ7n+gnPWAQaFsfKJblT7AOkQ==","signatures":[{"sig":"MEUCICw4I5U9PRzehZiUaMj82pTJa02hzG2+mKVxTYvxj02fAiEA9C77qyODUTD97Ftud2msT5ssg5L/aawunY+oiqULyZs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50072},"type":"module","_from":"file:onozaty-prisma-db-comments-generator-1.3.0.tgz","scripts":{"lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","test":"vitest run","build":"rm -rf dist/ && node build.js","format":"prettier --write src/**","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","typecheck":"tsc --noEmit","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/3611ea96259b922d882631974814f156/onozaty-prisma-db-comments-generator-1.3.0.tgz","_integrity":"sha512-GKucXOnXH4ZeQ0tZULHQKGuutyFktwxikEWLxy3YhbE5Z0C5LtEhU7tQFdHEojJ7n+gnPWAQaFsfKJblT7AOkQ==","repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.7.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.15.1","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","dotenv-cli":"^8.0.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.3.0_1749819971567_0.2947188393018363","host":"s3://npm-registry-packages-npm-production"}},"1.4.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.4.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.4.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"cb89fc11df41bac3d9c97f7582d4810c017798e6","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.4.0.tgz","fileCount":5,"integrity":"sha512-lKtuJgShnhp01OGCDb0wePGbaTOKL5CIdXQo3h87tCymKz8SaL3z/cVpnRa1ndIhgQPcLxNgV9wmros8eytivA==","signatures":[{"sig":"MEYCIQDDSFSKn2yBtv3RS3/afUnlKmguwb10gBjSUb7dEzCAWAIhAJrviU0rLteZ6Cyi86ka0yOcPsx1EUtHL1o/bLEeXVF4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50001},"type":"module","gitHead":"e30a88a482e2e59e315e203460eae520a9b0c0ae","scripts":{"lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","test":"vitest run","build":"rm -rf dist/ && node build.js","format":"prettier --write src/**","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","prepare":"pnpm run build","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","typecheck":"tsc --noEmit","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"10.8.2","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.19.3","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","dotenv-cli":"^8.0.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.4.0_1762663886801_0.16034124842376385","host":"s3://npm-registry-packages-npm-production"}},"1.5.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.5.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.5.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"5a7a9920c88be69ef90975f40f8c5af0a72d92ab","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.5.0.tgz","fileCount":5,"integrity":"sha512-lCspuLeLATmF8QD+kjjEp7Ye46gTNTo/RChL7AA7qYEKB0DO9ONYwR4GR1LzcJ/mzNflgO8GUnrJ/JIVJ91rSA==","signatures":[{"sig":"MEQCIFh5oHAQlWK18pkpcKYKi3tYJScxiujxqv8WiPkHiqCYAiBaHQucMGMXXTVDmzOD3o8aZWV22aXJqDvSiz1XorPw5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-db-comments-generator@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":50156},"type":"module","gitHead":"3c22dba607da85343d0722cebae625d2c58c6857","scripts":{"lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","test":"vitest run","build":"rm -rf dist/ && node build.js","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","typecheck":"tsc --noEmit","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:eac5d9b3-ed4f-4b1c-9b9b-8499d973d0f1"}},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"11.8.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.4","devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","dotenv-cli":"^8.0.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.5.0_1770046682313_0.5062149914995044","host":"s3://npm-registry-packages-npm-production"}},"1.6.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.6.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.6.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"ee02a31c9c5dc2551a6bce10a6d76644b3af9ae5","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.6.0.tgz","fileCount":5,"integrity":"sha512-ZgS3odHjFwO178ymZSf3lkO9dzKRR+btRw99rTWUhSYnFiL/B/pnncWfhEPuebMBWvip8G9yDmUR3Wth4UTcAw==","signatures":[{"sig":"MEYCIQDia79oUmxKoLeH07ihkZdNIbcVe4v4ImcETRz7JV6OtQIhALehhG5r06WvyLuqGgnJQSaUQTdV293RUIUem+iqjrHG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-db-comments-generator@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":58940},"type":"module","gitHead":"98cbc4ed4cbcf3c561546c49ffbc1eae39473f7a","scripts":{"lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","test":"vitest run","build":"rm -rf dist/ && node build.js","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","typecheck":"tsc --noEmit","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:eac5d9b3-ed4f-4b1c-9b9b-8499d973d0f1"}},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"11.12.0","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.4","devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","dotenv-cli":"^8.0.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.6.0_1774177106227_0.717902099811778","host":"s3://npm-registry-packages-npm-production"}},"1.7.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.7.0","keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-db-comments-generator@1.7.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"dist":{"shasum":"84499a0c67845e328af53cb455cf96a459b4082d","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.7.0.tgz","fileCount":5,"integrity":"sha512-a0XKWrb+/LKL5AKaw7GR8iSfH5DttsTxjmhsoq12VUFF+VUUn3S2T1nOZWfxl0Yq5eGgAKEtTBmUqdQj+bfLMg==","signatures":[{"sig":"MEUCIDrJUyNlExTPLmQq0KZlxbj2x+SDF/alq9gmdosNWe5fAiEAn0WyfO6mYsunoriHNIZIB2UAjIvt6W3IuPmqrr2QdbA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-db-comments-generator@1.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":60621},"type":"module","gitHead":"0e6db7e2490d2a16e10031ae75cdfa10f18fabfb","scripts":{"lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","test":"vitest run","build":"rm -rf dist/ && node build.js","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","test:cov":"vitest run --coverage","db:deploy":"prisma migrate deploy","typecheck":"tsc --noEmit","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:eac5d9b3-ed4f-4b1c-9b9b-8499d973d0f1"}},"repository":{"url":"git+https://github.com/onozaty/prisma-db-comments-generator.git","type":"git"},"_npmVersion":"11.12.1","description":"Generate database comments from Prisma schema","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0","@prisma/generator-helper":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.4","devDependencies":{"eslint":"^9.28.0","prisma":"^6.0.0","vitest":"^3.2.0","esbuild":"^0.25.5","globals":"^15.8.0","prettier":"^3.3.3","@eslint/js":"^9.28.0","dotenv-cli":"^8.0.0","typescript":"^5.5.4","@types/node":"^22.0.0","@prisma/client":"^6.0.0","typescript-eslint":"^8.33.1","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-comments-generator_1.7.0_1774780713059_0.6946318983353097","host":"s3://npm-registry-packages-npm-production"}},"1.8.0":{"name":"@onozaty/prisma-db-comments-generator","version":"1.8.0","description":"Generate database comments from Prisma schema","type":"module","bin":{"prisma-db-comments-generator":"dist/generator.cjs"},"scripts":{"build":"rm -rf dist/ && node build.js","typecheck":"tsc --noEmit","format":"prettier --write src/**","lint":"eslint 'src/**/*.ts' --ignore-pattern 'src/__fixtures__/**'","check":"pnpm run lint && pnpm run typecheck","test":"vitest run","test:cov":"vitest run --coverage","db:init":"rm -rf prisma/migrations && prisma migrate reset --skip-generate","db:migrate":"prisma migrate dev && prisma generate && pnpm run db:deploy","db:deploy":"prisma migrate deploy","db:init:mysql":"rm -rf prisma-mysql/migrations && dotenv -e .env.mysql -- prisma migrate reset --skip-generate --schema=prisma-mysql/schema.prisma","db:migrate:mysql":"dotenv -e .env.mysql -- prisma migrate dev --schema=prisma-mysql/schema.prisma && dotenv -e .env.mysql -- prisma generate --schema=prisma-mysql/schema.prisma && pnpm run db:deploy:mysql","db:deploy:mysql":"dotenv -e .env.mysql -- prisma migrate deploy --schema=prisma-mysql/schema.prisma"},"repository":{"type":"git","url":"git+https://github.com/onozaty/prisma-db-comments-generator.git"},"keywords":["prisma","generator","postgresql"],"author":{"name":"onozaty"},"license":"MIT","bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","packageManager":"pnpm@10.34.1+sha512.b58fbde6dca66a929538021581f648b4570b6ca19b18e7cbd7f2c07a7b24454155388dacdf08f2af3678e88a6d1fe04f9d609df24bf51735a060ea041b374ab7","devDependencies":{"@eslint/js":"^9.28.0","@prisma/client":"^6.0.0","@types/node":"^22.0.0","@vitest/coverage-v8":"^3.2.0","@vitest/eslint-plugin":"^1.2.1","dotenv-cli":"^8.0.0","esbuild":"^0.25.5","eslint":"^9.28.0","globals":"^15.8.0","prettier":"^3.3.3","prisma":"^6.0.0","typescript":"^5.5.4","typescript-eslint":"^8.33.1","vitest":"^3.2.0"},"dependencies":{"@prisma/generator-helper":"^5.0.0 || ^6.0.0 || ^7.0.0","@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0"},"gitHead":"48faa48bf96bde6e2f055c5b581c2176c48c22e4","_id":"@onozaty/prisma-db-comments-generator@1.8.0","_nodeVersion":"20.20.2","_npmVersion":"11.16.0","dist":{"integrity":"sha512-19qCxDURyeR4kSqPSaYFncwfCtHE4k2CCubhjz9lb04vICiRWFMTfgq0iJxoy4g/v6Vh7H3/Kt4bLPVLhhDg/A==","shasum":"3250bb07f3378d60f86276b28d61871f67ca2607","tarball":"https://registry.npmjs.org/@onozaty/prisma-db-comments-generator/-/prisma-db-comments-generator-1.8.0.tgz","fileCount":5,"unpackedSize":64892,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-db-comments-generator@1.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFVNhSgGrmpq0pzatmIxdwWFcMlq1PrhcjLuHyUmLasvAiBuVT/EGelQYr5QGWkr+9GMGiiQSmX46n+Lqy8UqvW5sA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:eac5d9b3-ed4f-4b1c-9b9b-8499d973d0f1"}},"directories":{},"maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prisma-db-comments-generator_1.8.0_1780160823869_0.7391655316540431"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-04T12:59:44.071Z","modified":"2026-05-30T17:07:04.308Z","1.0.0":"2024-08-04T12:59:44.373Z","1.0.1":"2024-08-04T13:45:59.534Z","1.0.2":"2024-10-20T12:03:03.405Z","1.0.3":"2025-02-24T12:37:16.749Z","1.1.0":"2025-03-16T03:28:41.860Z","1.2.0":"2025-06-05T13:59:44.443Z","1.3.0":"2025-06-13T13:06:11.732Z","1.4.0":"2025-11-09T04:51:27.028Z","1.5.0":"2026-02-02T15:38:02.468Z","1.6.0":"2026-03-22T10:58:26.382Z","1.7.0":"2026-03-29T10:38:33.257Z","1.8.0":"2026-05-30T17:07:04.021Z"},"bugs":{"url":"https://github.com/onozaty/prisma-db-comments-generator/issues"},"author":{"name":"onozaty"},"license":"MIT","homepage":"https://github.com/onozaty/prisma-db-comments-generator#readme","keywords":["prisma","generator","postgresql"],"repository":{"type":"git","url":"git+https://github.com/onozaty/prisma-db-comments-generator.git"},"description":"Generate database comments from Prisma schema","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"readme":"# prisma-db-comments-generator\n\n[![Test](https://github.com/onozaty/prisma-db-comments-generator/actions/workflows/test.yml/badge.svg)](https://github.com/onozaty/prisma-db-comments-generator/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/onozaty/prisma-db-comments-generator/graph/badge.svg?token=406L0D8MI0)](https://codecov.io/gh/onozaty/prisma-db-comments-generator)\n[![npm version](https://badge.fury.io/js/@onozaty%2Fprisma-db-comments-generator.svg)](https://badge.fury.io/js/@onozaty%2Fprisma-db-comments-generator)\n\nGenerate database comments from Prisma schema.\n\nIt is based on the following code idea. Thank you @Jyrno42 .\n\n- https://github.com/prisma/prisma/issues/8703#issuecomment-1614360386\n\n## Features\n\n- Create a migration SQL for the `COMMENT ON` statement based on the information in the `schema.prisma` file.\n    - Comments written with triple slashes (`///`) are eligible.\n- Create a `COMMENT ON` statement only for the part of the difference.\n    - The previous information is stored as `prisma/migrations/comments-latest.json`.\n- Support for table and column comments.\n- Comments you do not want to create can be excluded using regular expressions.\n    - For example, a VIEW is to be created manually, and you do not want to create a comment statement from the `schema.prisma`. In such cases, you can exclude them by specifying the pattern of the VIEW.\n- Enum information can be added to column comments.\n\n## Usage\n\nInstall this package.\n\n```\nnpm install --save-dev @onozaty/prisma-db-comments-generator\n```\n\nAdd the generator to the `schema.prisma`\n\n```prisma\ngenerator comments {\n  provider = \"prisma-db-comments-generator\"\n}\n```\n\nRun `npx prisma generate` to trigger the generator.\nA SQL file for `COMMENT ON` is generated in the migrations folder.\n\n```\n$ npx prisma generate\nEnvironment variables loaded from .env\nPrisma schema loaded from prisma/schema.prisma\nComments generation completed: 20240804142142_update_comments\n\n✔ Generated Prisma Client (v5.17.0) to ./node_modules/@prisma/client in 73ms\n\n✔ Generated Prisma Database Comments (v1.0.1) to ./prisma/migrations in 11ms\n```\n\n## Example\n\nFor example, from the following `schema.prisma`,\n\n```prisma\ngenerator client {\n  provider = \"prisma-client-js\"\n}\n\ngenerator comments {\n  provider = \"prisma-db-comments-generator\"\n}\n\ndatasource db {\n  provider = \"postgresql\"\n  url      = env(\"DATABASE_URL\")\n}\n\n/// Product type enumeration\nenum ProductType {\n  BOOK\n  TOY\n  FASHION\n\n  @@map(\"enum_product_type\")\n}\n\n/// Customer\nmodel Customer {\n  /// Customer ID\n  customerId Int      @id @default(autoincrement()) @map(\"customer_id\")\n  /// Customer Name\n  name       String\n  /// e-mail\n  email      String   @unique\n  createdAt  DateTime @default(dbgenerated(\"statement_timestamp()\")) @map(\"created_at\") @db.Timestamptz()\n  sales      Sale[]\n\n  @@map(\"customers\")\n}\n\n/// Product\nmodel Product {\n  /// Product ID\n  productId   Int         @id @default(autoincrement()) @map(\"product_id\")\n  /// Product Name\n  name        String\n  /// Product Type\n  type        ProductType\n  /// Product Description\n  description String?\n  /// Price\n  price       Float\n  createdAt   DateTime    @default(dbgenerated(\"statement_timestamp()\")) @map(\"created_at\") @db.Timestamptz()\n  sales       Sale[]\n\n  @@map(\"products\")\n}\n\nmodel Sale {\n  /// Sale ID\n  saleId     Int      @id @default(autoincrement()) @map(\"sale_id\")\n  customer   Customer @relation(fields: [customerId], references: [customerId])\n  /// Customer ID\n  customerId Int      @map(\"customer_id\")\n  product    Product  @relation(fields: [productId], references: [productId])\n  /// Product ID\n  productId  Int      @map(\"product_id\")\n  /// Quantity\n  quantity   Int\n  /// Total Price\n  totalPrice Float    @map(\"total_price\")\n  createdAt  DateTime @default(dbgenerated(\"statement_timestamp()\")) @map(\"created_at\") @db.Timestamptz()\n\n  @@map(\"sales\")\n}\n```\n\nA migration SQL file will be generated as shown below.\n\n```sql\n-- Prisma Database Comments Generator v1.0.1\n\n-- customers comments\nCOMMENT ON TABLE \"customers\" IS 'Customer';\nCOMMENT ON COLUMN \"customers\".\"customer_id\" IS 'Customer ID';\nCOMMENT ON COLUMN \"customers\".\"name\" IS 'Customer Name';\nCOMMENT ON COLUMN \"customers\".\"email\" IS 'e-mail';\n\n-- products comments\nCOMMENT ON TABLE \"products\" IS 'Product';\nCOMMENT ON COLUMN \"products\".\"product_id\" IS 'Product ID';\nCOMMENT ON COLUMN \"products\".\"name\" IS 'Product Name';\nCOMMENT ON COLUMN \"products\".\"type\" IS 'Product Type';\nCOMMENT ON COLUMN \"products\".\"description\" IS 'Product Description';\nCOMMENT ON COLUMN \"products\".\"price\" IS 'Price';\n\n-- sales comments\nCOMMENT ON COLUMN \"sales\".\"sale_id\" IS 'Sale ID';\nCOMMENT ON COLUMN \"sales\".\"customer_id\" IS 'Customer ID';\nCOMMENT ON COLUMN \"sales\".\"product_id\" IS 'Product ID';\nCOMMENT ON COLUMN \"sales\".\"quantity\" IS 'Quantity';\nCOMMENT ON COLUMN \"sales\".\"total_price\" IS 'Total Price';\n```\n\n## Options\n\n| Option | Description |\n|---|---|\n| [targets](#targets) | Select targets for comment generation (`table`, `column`) |\n| [ignorePattern](#ignorepattern) | Exclude models by database name |\n| [ignoreCommentPattern](#ignorecommentpattern) | Exclude comments by content |\n| [commentRemovePattern](#commentremovepattern) | Remove matching text from comments |\n| [commentRemovePatternFlags](#commentremovepatternflags) | Regex flags for `commentRemovePattern` (default: `g`) |\n| [commentTransformScript](#commenttransformscript) | Transform comments with a script |\n| [includeEnumInFieldComment](#includeenuminfieldcomment) | Add enum values to field comments |\n\n### targets\n\nYou can select the target with `targets`.\nThe default is both `table` and `column`. (`targets = [\"table\", \"column\"]`)\n\nFor example, the following will only create comments on columns.\n\n```prisma\ngenerator comments {\n  provider = \"prisma-db-comments-generator\"\n  targets  = [\"column\"]\n}\n```\n\n### ignorePattern\n\nSpecify the model to be excluded from making comments as a regular expression with `ignorePattern`.  \nThe name specified here is the name in the database. Therefore, if `@@map` is specified, it will be the name in `@@map`.\n\nFor example, the following is a model with `_view` as a suffix that is excluded.\n\n```prisma\ngenerator comments {\n  provider      = \"prisma-db-comments-generator\"\n  ignorePattern = \"_view$\"\n}\n```\n\n### ignoreCommentPattern\n\nSpecify the model to be excluded from making comments as a regular expression with `ignoreCommentPattern`.  \n\nFor example, the following excludes comments containing `@TypeGraphQL`.\n\n```prisma\ngenerator comments {\n  provider             = \"prisma-db-comments-generator\"\n  ignoreCommentPattern = \"@TypeGraphQL\"\n}\n```\n\n### commentRemovePattern\n\nSpecify a regular expression with `commentRemovePattern` to remove matching text from comments.\nBy default, the pattern is applied globally (all occurrences are removed). See [`commentRemovePatternFlags`](#commentremovepatternflags) to change this behavior.\n\nThis is useful when combining with other Prisma generators that use annotations in triple-slash comments.\nFor example, [prismabox](https://github.com/m1212e/prismabox) uses annotations like `@prismabox.hide` or `@prismabox.options{ min: 10, max: 20 }` in comments. Since Prisma concatenates multiple `///` comments with `\\n`, you need to include the newline in the pattern.\n\nThe following pattern removes any line starting with `@prismabox.`, covering all prismabox annotations.\n\n```prisma\ngenerator comments {\n  provider             = \"prisma-db-comments-generator\"\n  commentRemovePattern = \"^@prismabox\\\\.[^\\\\n]+\\\\n\"\n}\n```\n\nWith the following definition,\n\n```prisma\nmodel User {\n  /// @prismabox.options{max: 10}\n  /// this is the user id\n  userId Int @map(\"user_id\")\n\n  @@map(\"users\")\n}\n```\n\nThe following comment is generated (annotation line is removed).\n\n```sql\nCOMMENT ON COLUMN \"users\".\"user_id\" IS 'this is the user id';\n```\n\n### commentRemovePatternFlags\n\nSpecify the regex flags for `commentRemovePattern` with `commentRemovePatternFlags`.\nThe default is `g` (global — removes all occurrences). You can specify any combination of valid JavaScript regex flags (`g`, `i`, `m`, etc.).\n\nFor example, the following removes `@internal` case-insensitively and globally.\n\n```prisma\ngenerator comments {\n  provider                  = \"prisma-db-comments-generator\"\n  commentRemovePattern      = \" @internal\"\n  commentRemovePatternFlags = \"gi\"\n}\n```\n\nTo revert to the previous behavior (remove only the first occurrence), specify an empty string.\n\n```prisma\ngenerator comments {\n  provider                  = \"prisma-db-comments-generator\"\n  commentRemovePattern      = \" @internal\"\n  commentRemovePatternFlags = \"\"\n}\n```\n\n### commentTransformScript\n\nSpecify the path to a JavaScript/TypeScript script with `commentTransformScript` to transform comments.\nThe path is relative to the `schema.prisma` file.\n\nThe script must export a function as its default export with the following signature:\n\n```ts\n(comment: string, context: CommentTransformContext) => string\n```\n\n`CommentTransformContext` has the following properties:\n\n| Property | Type | Description |\n|---|---|---|\n| `type` | `\"table\"` \\| `\"column\"` | Whether the comment is for a table or column |\n| `tableName` | `string` | The database table name |\n| `columnName` | `string` \\| `undefined` | The database column name (only for columns) |\n| `schema` | `string` \\| `undefined` | The database schema name |\n\n```prisma\ngenerator comments {\n  provider               = \"prisma-db-comments-generator\"\n  commentTransformScript = \"./comment-transform.js\"\n}\n```\n\nExample `comment-transform.js`:\n\n```js\nexport default (comment, context) => {\n  if (context.type === \"table\") {\n    return `[TABLE] ${comment}`;\n  }\n  return comment;\n};\n```\n\nIf both `commentRemovePattern` and `commentTransformScript` are specified, `commentRemovePattern` is applied first, then `commentTransformScript`.\n\n### includeEnumInFieldComment\n\nIf `includeEnumInFieldComment` is set, information about the enum is appended to the column comment.  \nDefault is `false`.\n\nSupported values:\n\n- `true` / `\"simple\"`: Simple format. Lists enum values, e.g. `enum: enum_name(VALUE1, VALUE2)`. `true` and `\"simple\"` behave identically.\n- `\"detailed\"`: Detailed format. Includes per-value `///` documentation and enum-level `///` documentation,\n  e.g. `enum: enum_name(VALUE1: value documentation, VALUE2: value documentation) - Enum documentation`.\n  If a value has no documentation, only the value name is shown. If the enum itself has no documentation, the ` - ...` suffix is omitted.\n\n### simple\n\n```prisma\ngenerator comments {\n  provider                  = \"prisma-db-comments-generator\"\n  includeEnumInFieldComment = true\n}\n```\n\nIf `includeEnumInFieldComment` is set to `true` with the following definition,\n\n```prisma\n/// Product type\nenum ProductType {\n  /// Physical goods\n  BOOK\n  /// Digital goods\n  DIGITAL\n  FASHION\n\n  @@map(\"enum_product_type\")\n}\n\n/// Product\nmodel Product {\n  /// Product Type\n  type ProductType\n\n  // others...\n}\n```\n\nThe following comment is generated.\n\n```sql\nCOMMENT ON COLUMN \"products\".\"type\" IS E'Product Type\\nenum: enum_product_type(BOOK, DIGITAL, FASHION)';\n```\n\n### detailed\n\n```prisma\ngenerator comments {\n  provider                  = \"prisma-db-comments-generator\"\n  includeEnumInFieldComment = \"detailed\"\n}\n```\n\nIf `includeEnumInFieldComment` is set to `\"detailed\"` with the following definition,\n\n```prisma\n/// Product type\nenum ProductType {\n  /// Physical goods\n  BOOK\n  /// Digital goods\n  DIGITAL\n\n  @@map(\"product_type\")\n}\n\n/// Product\nmodel Product {\n  /// Product Type\n  type ProductType\n\n  // others...\n}\n```\n\nThe following comment is generated.\n\n```sql\nCOMMENT ON COLUMN \"products\".\"type\" IS E'Product Type\\nenum: product_type(BOOK: Physical goods, DIGITAL: Digital goods) - Product type';\n```\n\n## Supported Databases\n\n- PostgreSQL\n- MySQL (Experimental)\n\n### MySQL Support (Experimental)\n\nMySQL support is currently experimental and we are seeking feedback. For MySQL, this generator uses stored procedures to manage column comments due to MySQL's specific syntax requirements for column comment updates.\n\n**Why Stored Procedures are Used:**\nMySQL requires the full column definition when updating column comments via `ALTER TABLE ... MODIFY COLUMN`. To handle this complexity, the generator creates a stored procedure (`prisma_update_column_comment`) that dynamically retrieves the current column definition from `information_schema` and safely applies the comment update.\n\n**Required MySQL Permissions:**\n- `CREATE ROUTINE` - Required to create stored procedures for column comments\n- `ALTER ROUTINE` - Required to modify stored procedures if needed\n\nThe generated SQL includes:\n- Direct `ALTER TABLE` statements for table comments\n- Stored procedures for column comment updates (automatically created and cleaned up)\n\nOther databases may be available, but the above are the only ones tested.\n\n## License\n\nMIT\n\n## Author\n\n[onozaty](https://github.com/onozaty)\n","readmeFilename":"README.md"}