{"_id":"@onozaty/prisma-schema-fixer","_rev":"14-106d33e5321ffe5957a893ba491432b7","name":"@onozaty/prisma-schema-fixer","dist-tags":{"latest":"1.2.2"},"versions":{"0.0.1":{"name":"@onozaty/prisma-schema-fixer","version":"0.0.1","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.0.1","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"8034322871ce4a891fae52b12f47b55544ca1391","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.0.1.tgz","fileCount":25,"integrity":"sha512-5i7kojw2jskvMJ53qm7FF04DcO1n7arKK5AlJcpgTeqh9QiqOdXNfsDwTZR3vThoS0ClnvxlioDMJLv3tTIQlg==","signatures":[{"sig":"MEQCIGuIQKSQlniZ9MWqA6vnMjcMu2BnmoolWSyhvhLiNxE4AiAs4awIBQw4alXrG+FizZzMIuvAfYygXNbG4NXX2HmldQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86175},"type":"module","types":"dist/index.d.ts","gitHead":"bc8f21433b3ce0b3d53cacdd990e0267a59616d2","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.0.1_1741507962124_0.7184816384622685","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@onozaty/prisma-schema-fixer","version":"0.0.2","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.0.2","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"ef7dd13114fa6d0d97604171c3c820409e407a77","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.0.2.tgz","fileCount":25,"integrity":"sha512-IBBLffOBwA9jPifHq/5LzTuWjG8wMjwYMtL0Fm+Ef/Rmhi0yurw8OXAiFBku1e7k7Hgork9u9XEhW0smC12O6w==","signatures":[{"sig":"MEYCIQCqTGe+4vAs9rfyOyvUygBQA6ShOGO0tyg7tnNG0KWMKQIhAPQo1tphzABJxSGTkzmXnZoQezNz6V4SHZDf31QyNNlm","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86210},"type":"module","types":"dist/index.d.ts","gitHead":"69d3c9d17ab265c4b8617a9abe128ee534a104ab","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.0.2_1741508363376_0.798097151845385","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@onozaty/prisma-schema-fixer","version":"0.0.3","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.0.3","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"62deae24a080f83c0fa7a58d4e4c3c32fe4b26ce","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.0.3.tgz","fileCount":25,"integrity":"sha512-sVoogSHlzOZkaRlMyDfVc7XmEK85ySASV0gqMoRBis22964gI6JZFXfG1my0oLXqN+PeMaQ870EAMaBWkHwPYw==","signatures":[{"sig":"MEUCIG3rUFpArX1o73lAyO9vBJqRA3pSMVWjlyQqvPKSnnBUAiEAs0mDwJIjeW1H7KcuYy9rafBrZ36CSxTjxAV5f4QgwNE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86795},"type":"module","types":"dist/index.d.ts","gitHead":"7ee5b950f40e166c296cdb7ae200bb85d476905e","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","prepare":"pnpm run build"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.0.3_1741508531225_0.3587527830409514","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@onozaty/prisma-schema-fixer","version":"0.0.4","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.0.4","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"29173e09b348ee1bbe2946404b3e51e3a21a0597","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.0.4.tgz","fileCount":25,"integrity":"sha512-gyVkQQzhZCiSKQJBvuB4ZI0kUZVScgd/bDd1KchGyAbgkRHE2v9QiRgTksI5hunSEy5NpfYrQXC25PlczvlbeQ==","signatures":[{"sig":"MEQCIBnG4C+/RgVqTYTb9jV4lwxxtWMZMBq6YLNZI3Z6GOHtAiA3h3K24wl3CUQvsNzIW6VikduDSENp2hEZymZYqwuyUQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94804},"type":"module","types":"dist/index.d.ts","gitHead":"a660f0cc690ae75aaff205cd583c2f76ce74aecc","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","prepare":"pnpm run build"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.0.4_1741525855250_0.8464574597831012","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@onozaty/prisma-schema-fixer","version":"0.1.0","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.1.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"c4ebfb603d18ee803337e3103f8d3f03cfbd08a2","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.1.0.tgz","fileCount":38,"integrity":"sha512-yYWXbHF+AnwqkKS1ObGiJpEQZqn3wuuhkE5Zc/ZAL5SC8e1JWkKpm8WxQhMtJHjjCk9KVBM3aT6aF1XTgcGP5g==","signatures":[{"sig":"MEUCIFvTyOl5hpH8UVT3aI+5I4twz5y9kX81FqUGYh1O/WapAiEAw2k1mmjk9yPro317DhZCdQlhTibaKPERETI3AD7IOTg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101758},"type":"module","_from":"file:onozaty-prisma-schema-fixer-0.1.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/ad75f9e1c2907d0a5c635bc80d6d5691/onozaty-prisma-schema-fixer-0.1.0.tgz","_integrity":"sha512-yYWXbHF+AnwqkKS1ObGiJpEQZqn3wuuhkE5Zc/ZAL5SC8e1JWkKpm8WxQhMtJHjjCk9KVBM3aT6aF1XTgcGP5g==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.1.0_1741702895314_0.6115839948055755","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@onozaty/prisma-schema-fixer","version":"0.1.1","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.1.1","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"72930d06e5434de23ee7e769b47ed7985d5d777e","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.1.1.tgz","fileCount":38,"integrity":"sha512-lWOtqmXX/nJhHOBhHrTtfqyQ6IcPGQAbsFwK5TfLpBmjaxH7rzcS1ipOLOXvYoCcsBAn4O+pFfpGCFdXpkVZAw==","signatures":[{"sig":"MEQCIHQdvg7CTdip4UQ3A1FfV2dBJBiNeg+GvMciOyp+x9AkAiBAzNgu03KHcjmE6QXxorT5hT+lohtQ2tGQlL8MYnY82Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101914},"type":"module","_from":"file:onozaty-prisma-schema-fixer-0.1.1.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/9ba36b52f695615d61a02b813b2bd1a1/onozaty-prisma-schema-fixer-0.1.1.tgz","_integrity":"sha512-lWOtqmXX/nJhHOBhHrTtfqyQ6IcPGQAbsFwK5TfLpBmjaxH7rzcS1ipOLOXvYoCcsBAn4O+pFfpGCFdXpkVZAw==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.1.1_1741707330844_0.15717083925875608","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@onozaty/prisma-schema-fixer","version":"0.1.2","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.1.2","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"049157e06f5ab6e13e8d42aa7c4354b2ebbceecb","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.1.2.tgz","fileCount":38,"integrity":"sha512-j5v59ZNeTYi/V+SeUGo9Z8qpOgcxyEzNoRcuo0YXGPrD2deX2nq7+JCwPnmegCFuqxtkIBtDlrFcRgtZhsG06w==","signatures":[{"sig":"MEYCIQCkr1W8fX4YfvgPIzEQKIG6sVSyWPbOWbV6sCBAxPv6tAIhAPNGDLc0nVbFHBMqoYIM4PdHZfx1KAuaLkoNZsbntKDf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110899},"type":"module","_from":"file:onozaty-prisma-schema-fixer-0.1.2.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/31b93b1412fc87375d08b30911b2aec2/onozaty-prisma-schema-fixer-0.1.2.tgz","_integrity":"sha512-j5v59ZNeTYi/V+SeUGo9Z8qpOgcxyEzNoRcuo0YXGPrD2deX2nq7+JCwPnmegCFuqxtkIBtDlrFcRgtZhsG06w==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.1.2_1741875694736_0.2994586366999583","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@onozaty/prisma-schema-fixer","version":"0.2.0","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@0.2.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"fd440242db798d35089b4f2d3c5695900a15570c","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-0.2.0.tgz","fileCount":40,"integrity":"sha512-T2JYXDcN1TPsfl0Ca/nx8G6OrseudTAMioPlpo9VHbgPmBmKEBREtACDpKrV1wv11kLLvCuzv6oIiGKjI0b8bA==","signatures":[{"sig":"MEUCIQDR1qSzs2JlCaBy4ugtmmQs5nhgc5P+6lX6rlDdhu5kYwIgTpCt67cZTET4Ko5Vvh5zGg8/qiguyFXaC6uS7LaI6HQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":117402},"type":"module","_from":"file:onozaty-prisma-schema-fixer-0.2.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/effd9d6a6f695a37b5e744c31b488d8d/onozaty-prisma-schema-fixer-0.2.0.tgz","_integrity":"sha512-T2JYXDcN1TPsfl0Ca/nx8G6OrseudTAMioPlpo9VHbgPmBmKEBREtACDpKrV1wv11kLLvCuzv6oIiGKjI0b8bA==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_0.2.0_1742474390819_0.6853982579832727","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@onozaty/prisma-schema-fixer","version":"1.0.0","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@1.0.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"e9d4a15436cd7defe480660c0840e159152990da","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.0.0.tgz","fileCount":40,"integrity":"sha512-b4IeD8HQ1imeAdNtQXkNK6/CCvfHjRGpSUs0aQw9x0qvCs9TpyXj564YPegFzZKeOaclt/qEFtCF4YBPD2s/Mw==","signatures":[{"sig":"MEUCIQDx8xG+tslVT160iLrR3/2YkB2Z9iQ8H5orFdPNyObdDwIgbUH2eo3587Efb1gxj0EC8wE1H98eUV4v5QPGBhgN4Ck=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118699},"type":"module","_from":"file:onozaty-prisma-schema-fixer-1.0.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js"},"_npmUser":{"name":"onozaty","email":"onozaty@gmail.com"},"_resolved":"/tmp/0cfd0e62c4d1e8fb97b86ced2a54c7be/onozaty-prisma-schema-fixer-1.0.0.tgz","_integrity":"sha512-b4IeD8HQ1imeAdNtQXkNK6/CCvfHjRGpSUs0aQw9x0qvCs9TpyXj564YPegFzZKeOaclt/qEFtCF4YBPD2s/Mw==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.7.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.15.1","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_1.0.0_1746713790348_0.14988740575448367","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@onozaty/prisma-schema-fixer","version":"1.1.0","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@1.1.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"4b635505964cb06ed4a94b8775c5b5b27ec7131d","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.1.0.tgz","fileCount":41,"integrity":"sha512-WJEc9Jk0DCviETzvalDfeggTkaQc9Dyb3t6KuPwT5FIRbbR9mTGtj9SHoWABvu0goIEVpYnBU8KM4rAKH2QBLA==","signatures":[{"sig":"MEQCIH6ik0tb4zfsYINW3+KxAlxGsmEtbbOWwcYnovjLeLUJAiApNNHigIbfURwMrtlJ9DNdZ+8x63HhlFdhPfzT2/bWVg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":124067},"type":"module","_from":"file:onozaty-prisma-schema-fixer-1.1.0.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","format":"prettier --write src/**/*.ts","test:cov":"vitest run --coverage","typecheck":"tsc --noEmit"},"_npmUser":{"name":"onozaty","actor":{"name":"onozaty","type":"user","email":"onozaty@gmail.com"},"email":"onozaty@gmail.com"},"_resolved":"/tmp/e6c3f27308a6caf5797dbabe9102137a/onozaty-prisma-schema-fixer-1.1.0.tgz","_integrity":"sha512-WJEc9Jk0DCviETzvalDfeggTkaQc9Dyb3t6KuPwT5FIRbbR9mTGtj9SHoWABvu0goIEVpYnBU8KM4rAKH2QBLA==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.8.2","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.19.3","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^5.0.0 || ^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_1.1.0_1751266725919_0.013914128187087371","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@onozaty/prisma-schema-fixer","version":"1.1.1","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@1.1.1","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"bc975953a418dbce5ee83fb0b045638d9ee142ad","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.1.1.tgz","fileCount":41,"integrity":"sha512-HijZlfKwljeBE6CDWrQ8vCqXWlp3L9SivMHePWry308R+XrCKv+rDW5soJ8+hTyrTd/nyXqPyzoHFLVhnLH39Q==","signatures":[{"sig":"MEUCIA47R1Fwco1K5hbRXINIxLeh7JaoKE2IHLDaODWJe6P6AiEA5fSIOY1UlqdPyu8XepORYHN2pHmpDHNhcIWqg3rIqKM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":124236},"type":"module","_from":"file:onozaty-prisma-schema-fixer-1.1.1.tgz","types":"dist/index.d.ts","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","check":"pnpm run lint && pnpm run typecheck && pnpm run test","format":"prettier --write src/**/*.ts","test:cov":"vitest run --coverage","typecheck":"tsc --noEmit"},"_npmUser":{"name":"onozaty","actor":{"name":"onozaty","type":"user","email":"onozaty@gmail.com"},"email":"onozaty@gmail.com"},"_resolved":"/tmp/733c5b0650c33e170351c4ac023af4bb/onozaty-prisma-schema-fixer-1.1.1.tgz","_integrity":"sha512-HijZlfKwljeBE6CDWrQ8vCqXWlp3L9SivMHePWry308R+XrCKv+rDW5soJ8+hTyrTd/nyXqPyzoHFLVhnLH39Q==","repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"10.8.2","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.19.3","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^5.0.0 || ^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_1.1.1_1751268744491_0.8438175835170425","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@onozaty/prisma-schema-fixer","version":"1.2.0","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@1.2.0","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"3dc5536658c16250131efd06935ab490a33c26d4","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.2.0.tgz","fileCount":27,"integrity":"sha512-tohBZ1QYimCtvcFUb6szPxugPd1r6oBSY+Zpwk8LsBDgvmLoLBkNxsHZ2RJtMsTxRjCF5xDwliIYPB60LQyegQ==","signatures":[{"sig":"MEYCIQDFmJZClgesaGmhfd1TmhdTZRPD1A5GvrmxtCxf2PjnPwIhAJowXwnwoObC/Z9rUzYQLMmucOjPrRq+90GssicOZHOQ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-schema-fixer@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":124082},"type":"module","types":"dist/index.d.ts","gitHead":"3ce435768b3eb03ebe5d9ceff4eae75018930742","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**/*.ts","test:cov":"vitest run --coverage","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9960565-2b0a-4b2c-8e94-ce4c61dbcd7a"}},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"11.8.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.20.0","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.4","devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_1.2.0_1770075461828_0.9994394210724726","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@onozaty/prisma-schema-fixer","version":"1.2.1","keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","_id":"@onozaty/prisma-schema-fixer@1.2.1","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"bin":{"prisma-schema-fixer":"dist/cli.mjs"},"dist":{"shasum":"0138eaee7be4977d2be6836ddc99ab1058cfe78a","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.2.1.tgz","fileCount":27,"integrity":"sha512-xL0lQYqKVBGljq/PEJURRzvzUMxad4uIyxy9Kp/w6bqZbqqT2pCO/1MuGwH4sM+LJlQoHdc4yg+4abwSH4a0/Q==","signatures":[{"sig":"MEUCIGyDH+0yWQAbYZJ29l5p3QmiOvF8y0y3HxEU1zXHToDdAiEA/xFVCOhsxG5ky1dktNOdbqjiVV8E3j0YxHH0NyOXIL4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-schema-fixer@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":124080},"type":"module","types":"dist/index.d.ts","gitHead":"417e334a4582b7335a09ccdf7873335531b6d395","scripts":{"lint":"eslint .","test":"vitest run","build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**/*.ts","test:cov":"vitest run --coverage","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9960565-2b0a-4b2c-8e94-ce4c61dbcd7a"}},"repository":{"url":"git+https://github.com/onozaty/prisma-schema-fixer.git","type":"git"},"_npmVersion":"11.8.0","description":"Fix schema.prisma according to the rules","directories":{},"_nodeVersion":"20.20.0","dependencies":{"commander":"^13.1.0","pluralize":"^8.0.0","change-case":"^5.4.4","@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.12.4","devDependencies":{"eslint":"^9.20.1","vitest":"^3.0.6","esbuild":"^0.25.0","globals":"^15.15.0","prettier":"^3.4.2","@eslint/js":"^9.20.0","typescript":"^5.7.3","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","typescript-eslint":"^8.24.0","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36"},"_npmOperationalInternal":{"tmp":"tmp/prisma-schema-fixer_1.2.1_1770076195527_0.6906706136283629","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@onozaty/prisma-schema-fixer","version":"1.2.2","description":"Fix schema.prisma according to the rules","type":"module","bin":{"prisma-schema-fixer":"dist/cli.mjs"},"types":"dist/index.d.ts","scripts":{"build":"rm -rf dist/ && tsc --emitDeclarationOnly && node build.js","test":"vitest run","test:cov":"vitest run --coverage","lint":"eslint .","typecheck":"tsc --noEmit","check":"pnpm run lint && pnpm run typecheck","format":"prettier --write src/**/*.ts"},"repository":{"type":"git","url":"git+https://github.com/onozaty/prisma-schema-fixer.git"},"keywords":["prisma"],"author":{"name":"onozaty"},"license":"MIT","bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","packageManager":"pnpm@10.12.4","dependencies":{"@prisma/internals":"^5.0.0 || ^6.0.0 || ^7.0.0","change-case":"^5.4.4","commander":"^13.1.0","pluralize":"^8.0.0"},"devDependencies":{"@eslint/js":"^9.20.0","@types/node":"^22.13.4","@types/pluralize":"^0.0.33","@vitest/coverage-v8":"^3.0.6","@vitest/eslint-plugin":"^1.1.36","esbuild":"^0.25.0","eslint":"^9.20.1","globals":"^15.15.0","prettier":"^3.4.2","typescript":"^5.7.3","typescript-eslint":"^8.24.0","vitest":"^3.0.6"},"gitHead":"59f57e42ec25de2cbde09db6a09a6d992af4b094","_id":"@onozaty/prisma-schema-fixer@1.2.2","_nodeVersion":"20.20.2","_npmVersion":"11.12.1","dist":{"integrity":"sha512-c1EUIa3L+EFM9BNPIcFfto6Uy/AYKiHlKd0Y7wLM9ErqaHOD2dlpmF2C9h0qAAR894JKu7Bf+dBkUW/utnflbA==","shasum":"ac4a5b37e1a205f682c323f7d987d04aa8474fd5","tarball":"https://registry.npmjs.org/@onozaty/prisma-schema-fixer/-/prisma-schema-fixer-1.2.2.tgz","fileCount":27,"unpackedSize":124065,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@onozaty%2fprisma-schema-fixer@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDJQBMe+Jex0EysI8o4nMt0MfE9O/9CWPx6o++LXu4IZAIgAK3rq0KT8lxqj4P57bv/GjkAM56RliDokicCEFRK45Y="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9960565-2b0a-4b2c-8e94-ce4c61dbcd7a"}},"directories":{},"maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prisma-schema-fixer_1.2.2_1776605904788_0.12928135201775448"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T08:12:42.017Z","modified":"2026-04-19T13:38:25.236Z","0.0.1":"2025-03-09T08:12:42.351Z","0.0.2":"2025-03-09T08:19:23.577Z","0.0.3":"2025-03-09T08:22:11.426Z","0.0.4":"2025-03-09T13:10:55.514Z","0.1.0":"2025-03-11T14:21:35.506Z","0.1.1":"2025-03-11T15:35:31.032Z","0.1.2":"2025-03-13T14:21:34.923Z","0.2.0":"2025-03-20T12:39:51.016Z","1.0.0":"2025-05-08T14:16:30.525Z","1.1.0":"2025-06-30T06:58:46.074Z","1.1.1":"2025-06-30T07:32:24.653Z","1.2.0":"2026-02-02T23:37:41.979Z","1.2.1":"2026-02-02T23:49:55.669Z","1.2.2":"2026-04-19T13:38:24.960Z"},"bugs":{"url":"https://github.com/onozaty/prisma-schema-fixer/issues"},"author":{"name":"onozaty"},"license":"MIT","homepage":"https://github.com/onozaty/prisma-schema-fixer#readme","keywords":["prisma"],"repository":{"type":"git","url":"git+https://github.com/onozaty/prisma-schema-fixer.git"},"description":"Fix schema.prisma according to the rules","maintainers":[{"name":"onozaty","email":"onozaty@gmail.com"}],"readme":"# prisma-schema-fixer\n\n[![Test](https://github.com/onozaty/prisma-schema-fixer/actions/workflows/test.yml/badge.svg)](https://github.com/onozaty/prisma-schema-fixer/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/onozaty/prisma-schema-fixer/graph/badge.svg?token=406L0D8MI0)](https://codecov.io/gh/onozaty/prisma-schema-fixer)\n[![npm version](https://badge.fury.io/js/@onozaty%2Fprisma-schema-fixer.svg)](https://badge.fury.io/js/@onozaty%2Fprisma-schema-fixer)\n\n`prisma-schema-fixer` is a tool to fix Prisma schema files (`schema.prisma`) according to specified rules.\n\n## Installation\n\n```sh\nnpm install --save-dev @onozaty/prisma-schema-fixer\n```\n\n## Usage\n\nRun the following command to fix your schema file using the default paths:\n\n```sh\nnpx prisma-schema-fixer\n```\n\nIf no configuration file exists, you'll be prompted to create one with recommended settings automatically:\n\n```\nConfiguration file not found. Would you like to create schema-fixer.config.mjs with recommended settings? (y/N):\n```\n\nRun the following command to fix your schema file with specified paths:\n\n```sh\nnpx prisma-schema-fixer -f path/to/schema.prisma -c path/to/schema-fixer.config.mjs\n```\n\n```\nUsage: prisma-schema-fixer [options]\n\nFix schema.prisma according to the rules\n\nOptions:\n  -f, --file <schemaFile>         Path to `schema.prisma` file (default: \"prisma/schema.prisma\")\n  -c, --config-file <configFile>  Path to configuration file (default: \"prisma/schema-fixer.config.mjs\")\n  -n, --dry-run                   Show changes in the console instead of modifying the file (default: false)\n  -V, --version                   output the version number\n  -h, --help                      display help for command\n```\n\n## Configuration File\n\nThe configuration file is used to define the rules for fixing the schema.\nThe configuration file is written in .mjs format and has the following structure:\n\n```js\n// @ts-check\n/** @type {import(\"@onozaty/prisma-schema-fixer\").Config} */\nexport default {\n  rules: {\n    \"model-name\": [\n      {\n        case: \"pascal\",\n        form: \"singular\",\n      },\n    ],\n    \"model-map\": [\n      {\n        case: \"snake\",\n        form: \"plural\",\n      },\n    ],\n    \"field-name\": [\n      {\n        case: \"camel\",\n      },\n    ],\n    \"field-map\": [\n      {\n        case: \"snake\",\n      },\n    ],\n    \"field-attribute\": [\n      {\n        typeToAttributes: {\n          DateTime: [\"@db.Timestamptz()\"],\n        },\n      },\n    ],\n    \"enum-name\": [\n      {\n        case: \"pascal\",\n        form: \"singular\",\n      },\n    ],\n    \"enum-map\": [\n      {\n        case: \"snake\",\n        form: \"plural\",\n      },\n    ],\n  },\n};\n```\n\n\n## Rules\n\n- [model-name](#model-name) - Rules for model names\n- [model-map](#model-map) - Rules for table names corresponding to models\n- [field-name](#field-name) - Rules for field names\n- [field-map](#field-map) - Rules for column names corresponding to fields\n- [enum-name](#enum-name) - Rules for enum names\n- [enum-map](#enum-map) - Rules for database-side enum names corresponding to enums\n- [field-attribute](#field-attribute) - Rules for automatically adding attributes to fields based on their type\n- [Targets](#targets) - Specify the targets for the rules\n\n### model-name\n\nRules for model names.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `form`: Specify singular or plural form.\n  - `singular`: Singular\n  - `plural`: Plural\n- `func`: A custom function to transform.\n  - `(value: string, target: { name: string }) => string`\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"model-name\": [\n      {\n        case: \"pascal\",\n        form: \"singular\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\n-model users {\n+model User {\n  id   Int  @id @default(autoincrement())\n  name String\n}\n```\n\n### model-map\n\nRules for table names corresponding to models.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `form`: Specify singular or plural form.\n  - `singular`: Singular\n  - `plural`: Plural\n- `func`: A custom function to transform.\n  - `(value: string, target: { name: string }) => string`\n\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"model-map\": [\n      {\n        case: \"snake\",\n        form: \"plural\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\nmodel UserProfile {\n  id   Int  @id @default(autoincrement())\n  name String\n+\n+ @@map(\"user_profiles\")\n}\n```\n\n### field-name\n\nRules for field names.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `pluralize`: Specify pluralization of array type fields.\n  - `true`: If the field type is an array, make the field name plural.\n- `func`: A custom function to transform.\n  - `(value: string, target: { model: string; field: string; type: string }) => string;`\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"field-name\": [\n      {\n        case: \"camel\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\nmodel Post {\n  id        Int      @id @default(autoincrement())\n- Published Boolean  @default(false)\n+ published Boolean  @default(false)\n- CreatedAt DateTime @default(now())\n+ createdAt DateTime @default(now())\n}\n```\n\n### field-map\n\nRules for column names corresponding to fields.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `func`: A custom function to transform.\n  - `(value: string, target: { model: string; field: string; type: string }) => string;`\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"field-map\": [\n      {\n        case: \"snake\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\nmodel User {\n  id        Int      @id @default(autoincrement())\n- createdAt DateTime @default(now())\n+ createdAt DateTime @default(now()) @map(\"created_at\")\n}\n```\n\n### enum-name\n\nRules for enum names.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `form`: Specify singular or plural form.\n  - `singular`: Singular\n  - `plural`: Plural\n- `func`: A custom function to transform.\n  - `(value: string, target: { name: string }) => string`\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"enum-name\": [\n      {\n        case: \"pascal\",\n        form: \"singular\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\n-enum roles {\n+enum Role {\n  USER\n  ADMIN\n}\n```\n\n### enum-map\n\nRules for database-side enum names corresponding to enums.\n\n- `case`: Specify case styles.\n  - `pascal`: PascalCase\n  - `camel`: camelCase\n  - `snake`: snake_case\n- `form`: Specify singular or plural form.\n  - `singular`: Singular\n  - `plural`: Plural\n- `func`: A custom function to transform.\n  - `(value: string, target: { name: string }) => string`\n    - This allows the addition of a prefix.\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"enum-map\": [\n      {\n        case: \"snake\",\n        form: \"plural\",\n        func: (value) => `enum_${value}`,\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\nenum Role {\n  USER\n  ADMIN\n+\n+ @@map(\"enum_roles\")\n}\n```\n\n### field-attribute\n\nRules for automatically adding attributes to fields based on their type.\n\n- `typeToAttributes`: Specify a mapping from field types to a list of attributes to add.\n  - Keys are field types (e.g. `\"String\"`, `\"Int\"`, `\"DateTime\"`)\n  - Values are arrays of attribute strings to add to fields of that type\n- `targets`: Target specific fields to apply this rule using the standard targeting options.\n\nUsing the following rule:\n\n```js\nexport default {\n  rules: {\n    \"field-attribute\": [\n      {\n        typeToAttributes: {\n          \"DateTime\": [\"@db.Timestamptz()\"],\n          \"String\": [\"@db.VarChar(255)\"]\n        }\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\nmodel User {\n  id        Int      @id @default(autoincrement())\n- createdAt DateTime @default(now())\n+ createdAt DateTime @default(now()) @db.Timestamptz()\n- name      String\n+ name      String   @db.VarChar(255)\n}\n```\n\nYou can also add `@updatedAt` uniformly to fields named `updatedAt`.\n\n```js\nexport default {\n  rules: {\n    \"field-attribute\": [\n      {\n        targets: { field: \"updatedAt\" },\n        typeToAttributes: {\n          DateTime: [\"@updatedAt\"],\n        },\n      },\n    ],\n  },\n};\n```\n\n```diff\nmodel User {\n  id        Int      @id @default(autoincrement())\n  createdAt DateTime @default(now())\n- updatedAt DateTime\n+ updatedAt DateTime @updatedAt\n  name      String\n}\n```\n\n### Targets\n\nSpecify the targets for the rules. This can be used to apply rules to specific models, fields, or enums.\n\n- `string`: Target a specific model, field, or enum by name.\n- `string[]`: Target multiple models, fields, or enums by their names.\n- `RegExp`: Target models, fields, or enums that match the regular expression.\n\nIf more than one is written in a single rule, the one written later takes precedence.  \nTherefore, it is best to write default rules first, followed by individual rules.\n\nExample usage:\n\n```js\nexport default {\n  rules: {\n    \"model-name\": [\n      {\n        case: \"snake\",\n        form: \"singular\",\n      },\n      {\n        targets: [\"User\"],\n        case: \"pascal\",\n      },\n    ],\n    \"field-name\": [\n      {\n        case: \"snake\",\n      },\n      {\n        targets: { model: \"post\", field: \"createdAt\" },\n        case: \"pascal\",\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:\n\n```diff\n-model users {\n+model User {\n  id        Int  @id @default(autoincrement())\n  name      String\n- createdAt DateTime @default(now())\n+ created_at DateTime @default(now())\n}\n\n-model Posts {\n+model post {\n  id        Int      @id @default(autoincrement())\n- Published Boolean  @default(false)\n+ published Boolean  @default(false)\n- createdAt DateTime @default(now())\n+ CreatedAt DateTime @default(now())\n}\n```\n\nYou can also write that you do not apply rules in a specific pattern.\n\n```js\nexport default {\n  rules: {\n    \"model-name\": [\n      {\n        case: \"pascal\",\n        form: \"singular\",\n      },\n      {\n        targets: [\"users\"],\n      },\n    ],\n  },\n};\n```\n\nThe `schema.prisma` will be fixed as follows:  \nOnly `users` will not be fixed.\n\n```diff\nmodel users {\n  id        Int      @id @default(autoincrement())\n  createdAt DateTime @default(now())\n}\n\n-model userProfiles {\n+model UserProfile {\n  id   Int    @id @default(autoincrement())\",\n  name String\",\n}\n\n-model posts {\n+model Post {\n  id        Int      @id @default(autoincrement())\n  published Boolean  @default(false)\n}\n```\n\n## License\n\nMIT\n\n## Author\n\n[onozaty](https://github.com/onozaty)\n","readmeFilename":"README.md"}