@vibeorm/dsl 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeorm/dsl",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript DSL for defining Prisma schemas with type-safe models, relations, and templates",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -502,11 +502,11 @@ function findMissingReverseRelations(params: {
502
502
  }
503
503
 
504
504
  if (!existingManyRelations.has(reverseKey)) {
505
- let baseName = sourceModelName + "s";
505
+ let baseName = sourceModelName;
506
506
  let fieldName = baseName;
507
507
 
508
508
  if (rel.__alias) {
509
- fieldName = rel.__alias + "s";
509
+ fieldName = rel.__alias;
510
510
  baseName = fieldName;
511
511
  }
512
512