{"_id":"@3lineas/d1-orm","_rev":"12-98e8be817f67b110c83ec942a20dfdbd","name":"@3lineas/d1-orm","dist-tags":{"latest":"1.0.14"},"versions":{"1.0.3":{"name":"@3lineas/d1-orm","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.3","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"69225085fe8572e63f7ae243299a23db4188f9ba","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.3.tgz","fileCount":11,"integrity":"sha512-K0lRuq/KuXEKYAhj6RHzuvXakkTr4JKWtD/gx4+YS/JB9Nw/KFBGQ4z57ANphpWoChAYYsheny/A6N9lGRQJlw==","signatures":[{"sig":"MEUCIB15CojlMyqxE0ZiB5vw2rd83/U0yKmlWP70T/eRFbZZAiEA1JEwtNdKWXlHdV33ZHK0kNAxxn/0TVvcYAPZU92HlhU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57029},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"commonjs","types":"./dist/index.d.ts","gitHead":"403e52fcb48df79154cd8d934c7f0303752ba39c","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean","postinstall":"node scripts/postinstall.js"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"Un ORM ligero y potente diseñado específicamente para Cloudflare D1, inspirado en Eloquent de Laravel.","directories":{},"_nodeVersion":"22.21.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.3_1769437457772_0.9285750137352313","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@3lineas/d1-orm","version":"1.0.4","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.4","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"6344e78bae2f50ffd3552f6bd98c8cbfe2308f2e","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.4.tgz","fileCount":11,"integrity":"sha512-JIVSxEP3EIM7H46/2v4N4uIIzhELgrhU5MyIMyaL0NCfjVvTj2aAPego2beb/EYji8S08VG33HGRsgVPGWenVg==","signatures":[{"sig":"MEUCIQCHP38/X1mRJS9UJoLYVovAVBdfDIAoCQXMXrXkjdjaoAIgBY9O39X0/VF7nCVjmNq5vdZKw0SbbNV1nXbXWE4QPYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97286},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"commonjs","types":"./dist/index.d.ts","gitHead":"b778fa21af62ff780bac4d6c9faa53342885bfdf","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.4_1769439907240_0.48949758916544805","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@3lineas/d1-orm","version":"1.0.5","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.5","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"9e33cec44a15b30d69be33df279071d533818d3d","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.5.tgz","fileCount":11,"integrity":"sha512-lzOg6NMvlKDtV3D2hUe8vnQ3oY6LbQ5red1KTIm3zxUJpFNpeJpE2U53glwXSZIyc6AdjcKTb7IobkdJaekpPA==","signatures":[{"sig":"MEUCIQCLpxPdEr0IYbraOrjyGNQ4bysF5cmei+HVXbhJcwUF0QIgGOEtoRw6QdIohJyqJtu7wDJXLmzyZd4wEs8yFNHdkmA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":102334},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"commonjs","types":"./dist/index.d.ts","gitHead":"13c11c6d9d23a1f1830535b567cd024c06506916","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.5_1769443674584_0.4331977758185317","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@3lineas/d1-orm","version":"1.0.6","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.6","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"011eec80b1872ac88b94a3f9ba74b3415feac3ba","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.6.tgz","fileCount":11,"integrity":"sha512-IoVpl1FLVptf9yvV0XZcVpFu56rOSPFQGsG2OZ+gLc75/DDUJLg0Wqgef3ml8b5jsVFJU4KAlaAgB9Ogtk2j/A==","signatures":[{"sig":"MEUCIQCLfL01mZE6Sf7AC7pH1UiupCBDnkDfmNSazyIzsK2+nAIgRGvPgn5JRx+YGXoRVObxxzcXkIE2uDf/cKvta8+tWW4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118883},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"commonjs","types":"./dist/index.d.ts","gitHead":"b7325f3929c1a5651cd823857e9f85b9d755abda","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.6_1769444617666_0.407149428769614","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@3lineas/d1-orm","version":"1.0.7","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.7","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"4df545e01f2598397c0829481f32d406448daf91","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.7.tgz","fileCount":11,"integrity":"sha512-OaCzjPeadZllgqcaJYmnKkD1gHeqKNpey1JE6QwmQv5YA4022KepmZPSJHjhc+XRRdlbF1dV6b7zgI9nE47ZyQ==","signatures":[{"sig":"MEYCIQCIW6IluyCE5jkNJ/edgWCVX73YPNcXsHgS1ys60vyrtwIhAMbZTbGi6LCm5PlAoPnaYC6qeZXNX84QYPhQP5MYMmpX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118746},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"commonjs","types":"./dist/index.d.ts","gitHead":"c977fa56c60eb71ab7809134cbbc2a037b083d76","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.7_1769444950762_0.7613452592727106","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@3lineas/d1-orm","version":"1.0.8","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.8","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"ab6dfe8ae0d04d9996e49bc52603e82cc1498f9c","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.8.tgz","fileCount":11,"integrity":"sha512-u7Krlt7/mp0A7Zp/RhdnD5wH5DbAKLVCX/MlwBVtL3mtQrin13Ucc97YQDmNp4vm9pCteRZZKUB23c2lC6a4UA==","signatures":[{"sig":"MEQCIGPZBGVAaZYSf3AIto0aWP8DgOP1aIP+OzMRBH48CjnJAiA7ZjNZwWOagwlKsywO5jxLjU0Q8BGp8lIad8NyUvLcWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":125321},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"c977fa56c60eb71ab7809134cbbc2a037b083d76","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.8_1769447508250_0.17107144955210418","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@3lineas/d1-orm","version":"1.0.9","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.9","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"d300d951e27c5240bbc183701ee89b01c64f1bef","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.9.tgz","fileCount":11,"integrity":"sha512-IkD0mzLhUodY3hfKcqPbjyYRBLykIghwxHcahx9EOwxbQTgX8FxARvWDBx2oD/2Znnm5ShdJ8vzuex3jv1+gfg==","signatures":[{"sig":"MEUCIGsSlRyFY42GsgZ6VX/T07XhRFz/KPx94yD+7+dctDlxAiEA3Pb1tleV7fohu0zz3muqOUK+NadD5LY5CZz7m6sN6Y0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126245},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"7fbaf2bc46dffac1f11523776c87cc58c757fcee","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.9_1769448242821_0.7874662327860922","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@3lineas/d1-orm","version":"1.0.10","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.10","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"1d383a863579e9a39137e565085d96684bb717d9","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.10.tgz","fileCount":11,"integrity":"sha512-xQCxQqmULN8zja+zDnCko51LtrAvrzVTIr4QJSSW1p4iPj20MVE3A5QuModwHBUXssW93aALRxiwSfDkt84ThQ==","signatures":[{"sig":"MEUCIEXXaLudofy3urX4rMyhwEXnPqLoI5KCtQiE9A7RZZGPAiEA6kiI0ho4tzChNgdXekOIJP8/IAkvtQSfepOI10TXbdc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126256},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"b4172637a107004546ae1988b15fddd71511246f","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.10_1769449096985_0.48386452459634866","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@3lineas/d1-orm","version":"1.0.11","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.11","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"6629e51d62d79a4643d8935634991f8aa060378c","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.11.tgz","fileCount":11,"integrity":"sha512-b4YWlwZDKpoEJfFhjnpASyq4igbwcSdy5KIaiQIhnB0BbYdBHtno9s+MzMdHjV66H6RUu83F44ws9Gt8583Mbg==","signatures":[{"sig":"MEUCIQDYn3cnIxnJ2LrgEaaa6TzxiZpw/XuL5XraKhlCN6sqHAIgLoh5Ol6Az5hrfA2Z3Ll+GXRQ5spqj7Z6oEGGJQaswWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":127232},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"d854d99eb4f9d8b80bb97e965c6f48fee15c6ad2","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.11_1769449489690_0.5070157270839446","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@3lineas/d1-orm","version":"1.0.12","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.12","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"fec6ac3c6329cce12c909d5c54a83a5431c58fcc","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.12.tgz","fileCount":11,"integrity":"sha512-Fa5gAZyocazc2w3kK2vIydqEHR6E7aJgjGP2RcPDZdeQnBUyHKnl4wJ/Bloscdzvh18wv6NCdDotxXj0z9IZ7Q==","signatures":[{"sig":"MEUCIQDtAuR4s3bV8Ha3xE4DJHrvIwjkWXvlFAjvejGXhZQknAIgWFR96OLptoRmxJIlIHU7BfbwsdIu5ELt+yh6z2KyF8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":178726},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"3ed6bc3b7ae16de5a37d8caef16f5f269913fa08","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.12_1769452925157_0.4289054745796228","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@3lineas/d1-orm","version":"1.0.13","keywords":[],"author":"","license":"ISC","_id":"@3lineas/d1-orm@1.0.13","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"bin":{"d1-orm":"dist/cli/index.js"},"dist":{"shasum":"c5703f8bc88a0b3f9651d4d0bf0b48f35ff7a192","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.13.tgz","fileCount":11,"integrity":"sha512-4T5PJx+cyNro6Yb84PD8xBZoPRa4Opd1V2QVy1lhPLN1XrwspQnaqJjgnIOk/OqI3xMdq3WYnzYjAAuId9Yyrg==","signatures":[{"sig":"MEQCICsa+DtLoMpzgC6OKb7O3GtABpqm26oWIGh5wRIOukxqAiA/3lnxIqyyqGsG3haewG9Eo/JYnrHOxc64JJdPAbMPBA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":178392},"main":"./dist/index.js","pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"type":"module","types":"./dist/index.d.ts","gitHead":"6393e4522c75fee1f39533a4b5a3a349c2066b31","scripts":{"orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1","build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean"},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"_npmVersion":"11.7.0","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","directories":{},"_nodeVersion":"22.21.0","dependencies":{"@clack/prompts":"^0.11.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.0.18","wrangler":"^4.60.0","typescript":"^5.9.3","@types/node":"^25.0.10","@cloudflare/workers-types":"^4.20260124.0"},"_npmOperationalInternal":{"tmp":"tmp/d1-orm_1.0.13_1769454276317_0.8862885161994445","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@3lineas/d1-orm","version":"1.0.14","description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"d1-orm":"dist/cli/index.js"},"scripts":{"build":"tsup src/index.ts src/cli/index.ts --format cjs,esm --dts --clean","orm":"npx tsx src/cli/index.ts","test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":"","license":"ISC","type":"module","devDependencies":{"@cloudflare/workers-types":"^4.20260124.0","@types/node":"^25.0.10","tsup":"^8.5.1","typescript":"^5.9.3","vitest":"^4.0.18","wrangler":"^4.60.0"},"pnpm":{"onlyBuiltDependencies":["esbuild","sharp","workerd"]},"dependencies":{"@clack/prompts":"^0.11.0"},"gitHead":"0551220c2f936d6453260087ed7d36d6ac7473bf","_id":"@3lineas/d1-orm@1.0.14","_nodeVersion":"22.21.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-BcEfByqXaQoHUi2L3MPesL4gUXiDwuzT8WqtFEZGgjj0AgHP+iRR+ZUGb5CpYQltWlRomDLTViyIV0vM3Xa7JA==","shasum":"8a6ac9809826db0d6e61212522da48633d9d23eb","tarball":"https://registry.npmjs.org/@3lineas/d1-orm/-/d1-orm-1.0.14.tgz","fileCount":11,"unpackedSize":182140,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCnd+Txhb//7pacTQrDO9S2jRU0pz1BnHKH6NqZsY1FtAIgP+w/W+Cd1byyXgnAiGsJJLKleEukJPCIll9k1+vqObY="}]},"_npmUser":{"name":"diegonelson","email":"diegonelson@3lineas.com"},"directories":{},"maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/d1-orm_1.0.14_1769456156978_0.6742735888630731"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-26T14:24:17.665Z","modified":"2026-01-26T19:35:57.243Z","1.0.3":"2026-01-26T14:24:17.975Z","1.0.4":"2026-01-26T15:05:07.405Z","1.0.5":"2026-01-26T16:07:54.735Z","1.0.6":"2026-01-26T16:23:37.804Z","1.0.7":"2026-01-26T16:29:10.901Z","1.0.8":"2026-01-26T17:11:48.398Z","1.0.9":"2026-01-26T17:24:02.959Z","1.0.10":"2026-01-26T17:38:17.138Z","1.0.11":"2026-01-26T17:44:49.852Z","1.0.12":"2026-01-26T18:42:05.296Z","1.0.13":"2026-01-26T19:04:36.452Z","1.0.14":"2026-01-26T19:35:57.124Z"},"license":"ISC","keywords":[],"description":"A lightweight and powerful ORM for Cloudflare D1, inspired by Laravel Eloquent.","maintainers":[{"name":"diegonelson","email":"diegonelson@3lineas.com"}],"readme":"# D1 ORM\n\nA lightweight and powerful ORM designed specifically for Cloudflare D1, inspired by Laravel's Eloquent.\n\n## Features\n\n- 🚀 **Lightweight & Fast**: Optimized for Cloudflare Workers environment.\n- 🛠 **Eloquent-based**: Familiar syntax for Laravel developers.\n- 📦 **TypeScript**: Full static typing for enhanced security.\n- 🔗 **Relationships**: Built-in support for `hasOne`, `hasMany`, and `belongsTo`.\n- ⌨️ **Integrated CLI**: Tools for migrations, model generation, and seeding.\n\n## Installation\n\n```bash\nnpm install @3lineas/d1-orm\n# Or using pnpm\npnpm add @3lineas/d1-orm\n```\n\n## Initial Setup\n\nBy default, the ORM attempts to **auto-initialize** itself if your D1 binding is named `DB`.\n\nFor zero-configuration setup in Cloudflare Workers or Next.js:\n\n```typescript\n// No manual setup required if binding name is 'DB'!\nconst users = await User.all();\n```\n\nIf you use a custom binding name or want manual control:\n\n```typescript\nimport { Database } from \"@3lineas/d1-orm\";\n\nexport default {\n  async fetch(request, env, ctx) {\n    Database.setup(env.MY_CUSTOM_DB);\n    // ...\n  },\n};\n```\n\n## Directory Structure\n\nWhen you run `init`, the ORM creates a unified structure in `src/database` (if `src` exists) or `database/`:\n\n- `database/models/`: Your Eloquent-style models.\n- `database/migrations/`: SQL migration files.\n- `database/seeders/`: Data seeders.\n- `database/config.ts`: Central configuration.\n\n### Configuration (`database/config.ts`)\n\n```typescript\nexport default {\n  binding: \"DB\", // The name of your D1 binding\n};\n```\n\n## Defining Models\n\nDefine your models by extending the `Model` class. Models are typically placed in `database/models/`.\n\n```typescript\nimport { Model } from \"@3lineas/d1-orm\";\n\nexport class User extends Model {\n  declare id: number;\n  declare name: string;\n}\n```\n\n## CLI & Migrations\n\nThe ORM includes a modern, Astro-style CLI for database management.\n\n### Initialization\n\n```bash\npnpm d1-orm init\n```\n\nThis command is non-interactive and automatically detects your project structure.\n\n### Available Commands\n\n#### Manage Models & Schema\n\nThe ORM provides interactive tools to manage your database schema and models.\n\n```bash\n# Create a new model interactively\n# It will prompt you for attributes and relationships\npnpm orm make:model User\n\n# Add more attributes or relations to an existing model\npnpm orm model:add\n```\n\n**Supported attribute types:**\n\n- `string`, `text`: For text data.\n- `integer`, `float`: For numeric data.\n- `boolean`: For true/false values.\n- `json`: Stored as text, parsed automatically.\n- `enum`: Includes database-level `CHECK` constraints.\n- `date`, `datetime`: For temporal data.\n- `blob`: For binary data.\n- `relation`: Interactive menu for `HasOne`, `HasMany`, and `BelongsTo`.\n\n**Relationship Automation:**\nWhen you define a relationship through the CLI:\n\n1.  The **Model** file is updated with the correct method (e.g., `posts() { return this.hasMany(Post); }`).\n2.  The **Migration** file automatically includes the foreign key column if you choose `BelongsTo`.\n\n#### Run Migrations\n\n```bash\n# Local\npnpm orm migrate\n\n# Remote\npnpm orm migrate --remote\n\n# Migrate and then seed\npnpm orm migrate --seed\n```\n\n#### Reset Database\n\nDrop all tables and re-run all migrations.\n\n```bash\npnpm orm migrate:fresh\n\n# Reset and seed\npnpm orm migrate:fresh --seed\n```\n\n#### Seed Database\n\nRun seeders defined in `database/seeders`.\n\n```bash\npnpm orm db:seed\n```\n\n> **Note:** The CLI automatically detects your `wrangler.jsonc`, `wrangler.json` or `wrangler.toml` to find your D1 binding.\n\n---\n\nCrafted with ❤️ by **3Lineas**.\n","readmeFilename":"README.md"}