prisma-generator-accel-record
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,3 +6,3 @@ "use strict"; | ||
const table = model.dbName ? ` static table = "${model.dbName}";\n` : ""; | ||
return `import { ApplicationRecord } from "./applicationRecord"; | ||
return `import { ApplicationRecord } from "./applicationRecord.js"; | ||
@@ -9,0 +9,0 @@ export class ${model.name}Model extends ApplicationRecord { |
@@ -230,6 +230,6 @@ "use strict"; | ||
const associationKey = (model) => { | ||
return model.fields | ||
return (model.fields | ||
.filter((f) => f.relationName) | ||
.map((f) => `'${f.name}'`) | ||
.join(" | "); | ||
.join(" | ") || "never"); | ||
}; | ||
@@ -236,0 +236,0 @@ const columnForPersist = (model) => { |
{ | ||
"name": "prisma-generator-accel-record", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/generator.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33583