arkormx 2.0.0-next.9 → 2.0.0

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": "arkormx",
3
- "version": "2.0.0-next.9",
3
+ "version": "2.0.0",
4
4
  "description": "Modern TypeScript-first ORM for Node.js.",
5
5
  "keywords": [
6
6
  "orm",
@@ -79,7 +79,7 @@
79
79
  "pg": "^8.19.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@prisma/client": "^7.6.0"
82
+ "@prisma/client": "^7.8"
83
83
  },
84
84
  "scripts": {
85
85
  "cmd": "tsx src/cli/index.ts",
@@ -1,5 +1,5 @@
1
1
  import { Model } from 'arkormx'
2
2
  {{FactoryImport}}
3
3
  export class {{ModelName}} extends Model {
4
- static delegate = '{{DelegateName}}'{{FactoryLink}}
4
+ static table = '{{TableName}}'{{FactoryLink}}
5
5
  }
package/stubs/model.stub CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Model } from 'arkormx'
2
2
  {{FactoryImport}}
3
- export class {{ModelName}} extends Model<'{{DelegateName}}'> {
4
- protected static override delegate = '{{DelegateName}}'{{FactoryLink}}
3
+ export class {{ModelName}} extends Model {
4
+ protected static override table = '{{TableName}}'{{FactoryLink}}
5
5
  }
@@ -0,0 +1,4 @@
1
+ import { PivotModel } from 'arkormx'
2
+ {{FactoryImport}}
3
+ export class {{ModelName}} extends PivotModel {
4
+ }