├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ └── CI.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .idea ├── .gitignore ├── codeStyles │ ├── Project.xml │ └── codeStyleConfig.xml ├── inspectionProfiles │ └── Project_Default.xml ├── jsLinters │ └── eslint.xml ├── misc.xml ├── modules.xml ├── prettier.xml ├── prisma-laravel-generator.iml ├── runConfigurations │ ├── Build_watch.xml │ ├── Generate_watch.xml │ └── Test_wach.xml └── vcs.xml ├── .prettierignore ├── .prettierrc.js ├── LICENSE ├── README.md ├── commitlint.config.js ├── lint-staged.config.js ├── package.json ├── packages ├── generator │ ├── .npmignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── __tests__ │ │ │ ├── __fixtures__ │ │ │ │ ├── composite-key-on-relation.prisma │ │ │ │ ├── composite-key.prisma │ │ │ │ ├── cuid.prisma │ │ │ │ ├── empty.prisma │ │ │ │ ├── fillable-guarded-conflict.prisma │ │ │ │ ├── get-sample.ts │ │ │ │ ├── hidden-visible-conflict.prisma │ │ │ │ ├── invalid-timestamps.prisma │ │ │ │ ├── mapped-fields.prisma │ │ │ │ ├── mass-assignable-conflict.prisma │ │ │ │ ├── mongo.prisma │ │ │ │ ├── multiple-inheritance.prisma │ │ │ │ ├── multiple-paths.prisma │ │ │ │ ├── mysql.prisma │ │ │ │ └── sample.prisma │ │ │ ├── errors │ │ │ │ └── errors.test.ts │ │ │ ├── generators │ │ │ │ ├── enums │ │ │ │ │ ├── __snapshots__ │ │ │ │ │ │ └── generator.test.ts.snap │ │ │ │ │ └── generator.test.ts │ │ │ │ ├── models │ │ │ │ │ ├── __snapshots__ │ │ │ │ │ │ └── generator.test.ts.snap │ │ │ │ │ └── generator.test.ts │ │ │ │ └── prisma-models │ │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── generator.test.ts.snap │ │ │ │ │ └── generator.test.ts │ │ │ ├── helpers │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── get-model-path.ts.snap │ │ │ │ ├── create-temporary-file.test.ts │ │ │ │ ├── delete-all-files-in-directory.test.ts │ │ │ │ ├── get-model-by-name.ts │ │ │ │ ├── get-model-path.ts │ │ │ │ ├── get-php-arguments-with-defaults.ts │ │ │ │ └── get-related-field-of-related-model.ts │ │ │ └── utils │ │ │ │ ├── __snapshots__ │ │ │ │ ├── get-cast-and-rules-from-field.test.ts.snap │ │ │ │ ├── get-default-from-field.test.ts.snap │ │ │ │ ├── get-phpdoc-properties-from-field.ts.snap │ │ │ │ ├── get-relations-from-model.ts.snap │ │ │ │ ├── php-cs-fixer.test.ts.snap │ │ │ │ └── prettier.test.ts.snap │ │ │ │ ├── find-on-documentation.test.ts │ │ │ │ ├── get-cast-and-rules-from-field.test.ts │ │ │ │ ├── get-class-from-fqcn.test.ts │ │ │ │ ├── get-default-from-field.test.ts │ │ │ │ ├── get-from-documentation.test.ts │ │ │ │ ├── get-phpdoc-properties-from-field.ts │ │ │ │ ├── get-relations-from-model.ts │ │ │ │ ├── php-cs-fixer.test.ts │ │ │ │ ├── prettier.test.ts │ │ │ │ ├── raw-schema │ │ │ │ ├── __snapshots__ │ │ │ │ │ ├── get-database-field-attribute.test.ts.snap │ │ │ │ │ ├── get-default-field-attribute.test.ts.snap │ │ │ │ │ ├── get-field-line.test.ts.snap │ │ │ │ │ ├── get-field-lines.test.ts.snap │ │ │ │ │ ├── get-map-field-attribute.test.ts.snap │ │ │ │ │ ├── get-model-lines.test.ts.snap │ │ │ │ │ └── get-unsupported-fields.test.ts.snap │ │ │ │ ├── get-database-field-attribute.test.ts │ │ │ │ ├── get-default-field-attribute.test.ts │ │ │ │ ├── get-field-line.test.ts │ │ │ │ ├── get-field-lines.test.ts │ │ │ │ ├── get-map-field-attribute.test.ts │ │ │ │ ├── get-model-lines.test.ts │ │ │ │ └── get-unsupported-fields.test.ts │ │ │ │ ├── strings │ │ │ │ ├── match-case.test.ts │ │ │ │ ├── plural.test.ts │ │ │ │ ├── singular.test.ts │ │ │ │ ├── snake.test.ts │ │ │ │ ├── ucfirst.test.ts │ │ │ │ └── ucwords.test.ts │ │ │ │ └── write-file-safely.test.ts │ │ ├── bin.ts │ │ ├── errors │ │ │ ├── composite-key-error.ts │ │ │ ├── composite-key-on-relation-error.ts │ │ │ ├── cuid-not-supported-error.ts │ │ │ ├── field-not-found-error.ts │ │ │ ├── fillable-guarded-conflict-error.ts │ │ │ ├── hidden-visible-conflict-error.ts │ │ │ ├── invalid-laravel-timestamps-error.ts │ │ │ ├── mapped-field-error.ts │ │ │ ├── mass-assignable-conflict-error.ts │ │ │ ├── model-not-found-error.ts │ │ │ ├── multiple-data-sources-error.ts │ │ │ ├── multiple-inheritance-error.ts │ │ │ └── too-many-paths-error.ts │ │ ├── generator.ts │ │ ├── generators │ │ │ ├── enums │ │ │ │ └── generator.ts │ │ │ ├── models │ │ │ │ └── generator.ts │ │ │ └── prisma-models │ │ │ │ └── generator.ts │ │ ├── helpers │ │ │ ├── create-temporary-file.ts │ │ │ ├── delete-all-files-in-directory.ts │ │ │ ├── get-database-name-from-field.ts │ │ │ ├── get-enum-fqcn.ts │ │ │ ├── get-model-by-name.ts │ │ │ ├── get-model-classname.ts │ │ │ ├── get-model-extend.ts │ │ │ ├── get-model-fqcn.ts │ │ │ ├── get-model-implements.ts │ │ │ ├── get-model-path.ts │ │ │ ├── get-model-traits.ts │ │ │ ├── get-php-arguments-with-defaults.ts │ │ │ ├── get-prisma-fqcn.ts │ │ │ ├── get-related-field-of-related-model.ts │ │ │ ├── get-table-name-from-model.ts │ │ │ ├── is-field-autoincrement.ts │ │ │ ├── is-field-created-timestamp.ts │ │ │ ├── is-field-cuid.ts │ │ │ ├── is-field-deleted-timestamp.ts │ │ │ ├── is-field-eager-loaded.ts │ │ │ ├── is-field-enum.ts │ │ │ ├── is-field-fillable.ts │ │ │ ├── is-field-guarded.ts │ │ │ ├── is-field-hidden.ts │ │ │ ├── is-field-read-only.ts │ │ │ ├── is-field-relation.ts │ │ │ ├── is-field-touching.ts │ │ │ ├── is-field-updated-timestamp.ts │ │ │ ├── is-field-uuid.ts │ │ │ ├── is-field-visible.ts │ │ │ ├── is-model-mass-assignable.ts │ │ │ └── is-model-pivot.ts │ │ ├── tsconfig.json │ │ └── utils │ │ │ ├── find-on-documentation.ts │ │ │ ├── get-cast-and-rules-from-field.ts │ │ │ ├── get-class-from-fqcn.ts │ │ │ ├── get-default-from-field.ts │ │ │ ├── get-from-documentation.ts │ │ │ ├── get-phpdoc-properties-from-field.ts │ │ │ ├── get-polymorphic-relations-from-model.ts │ │ │ ├── get-relations-from-model.ts │ │ │ ├── php-cs-fixer.ts │ │ │ ├── prettier.ts │ │ │ ├── raw-schema │ │ │ ├── get-database-field-attribute.ts │ │ │ ├── get-default-field-attribute.ts │ │ │ ├── get-field-attribute.ts │ │ │ ├── get-field-line.ts │ │ │ ├── get-field-lines.ts │ │ │ ├── get-map-field-attribute.ts │ │ │ ├── get-model-lines.ts │ │ │ └── get-unsupported-fields.ts │ │ │ ├── strings │ │ │ ├── match-case.ts │ │ │ ├── plural.ts │ │ │ ├── singular.ts │ │ │ ├── snake.ts │ │ │ ├── ucfirst.ts │ │ │ └── ucwords.ts │ │ │ └── write-file-safely.ts │ └── tsconfig.json └── usage │ ├── .gitignore │ ├── generated │ └── app │ │ ├── Enums │ │ └── Prisma │ │ │ └── Role.php │ │ └── Models │ │ ├── Category.php │ │ ├── CategoryPost.php │ │ ├── Post.php │ │ ├── Prisma │ │ ├── PrismaCategory.php │ │ ├── PrismaCategoryPost.php │ │ ├── PrismaPost.php │ │ └── PrismaUser.php │ │ └── User.php │ ├── package.json │ └── prisma │ └── schema.prisma ├── tools └── php-cs-fixer │ ├── .gitignore │ ├── .php-cs.dist.php │ ├── composer.json │ └── composer.lock ├── tsconfig.compiler.json ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.github/workflows/CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/.gitignore -------------------------------------------------------------------------------- /.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/codeStyles/Project.xml -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/codeStyles/codeStyleConfig.xml -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/inspectionProfiles/Project_Default.xml -------------------------------------------------------------------------------- /.idea/jsLinters/eslint.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/jsLinters/eslint.xml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/prettier.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/prettier.xml -------------------------------------------------------------------------------- /.idea/prisma-laravel-generator.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/prisma-laravel-generator.iml -------------------------------------------------------------------------------- /.idea/runConfigurations/Build_watch.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/runConfigurations/Build_watch.xml -------------------------------------------------------------------------------- /.idea/runConfigurations/Generate_watch.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/runConfigurations/Generate_watch.xml -------------------------------------------------------------------------------- /.idea/runConfigurations/Test_wach.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/runConfigurations/Test_wach.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ./packages/generator/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: ['@commitlint/config-conventional'], 3 | }; 4 | -------------------------------------------------------------------------------- /lint-staged.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/lint-staged.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/package.json -------------------------------------------------------------------------------- /packages/generator/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/.npmignore -------------------------------------------------------------------------------- /packages/generator/CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/CHANGELOG.md -------------------------------------------------------------------------------- /packages/generator/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/LICENSE -------------------------------------------------------------------------------- /packages/generator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/README.md -------------------------------------------------------------------------------- /packages/generator/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/jest.config.js -------------------------------------------------------------------------------- /packages/generator/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/package.json -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/composite-key-on-relation.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/composite-key-on-relation.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/composite-key.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/composite-key.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/cuid.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/cuid.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/empty.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/empty.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/fillable-guarded-conflict.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/fillable-guarded-conflict.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/get-sample.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/get-sample.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/hidden-visible-conflict.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/hidden-visible-conflict.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/invalid-timestamps.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/invalid-timestamps.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/mapped-fields.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/mapped-fields.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/mass-assignable-conflict.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/mass-assignable-conflict.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/mongo.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/mongo.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/multiple-inheritance.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/multiple-inheritance.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/multiple-paths.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/multiple-paths.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/mysql.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/mysql.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/__fixtures__/sample.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/__fixtures__/sample.prisma -------------------------------------------------------------------------------- /packages/generator/src/__tests__/errors/errors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/errors/errors.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/enums/__snapshots__/generator.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/enums/__snapshots__/generator.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/enums/generator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/enums/generator.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/models/__snapshots__/generator.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/models/__snapshots__/generator.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/models/generator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/models/generator.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/prisma-models/__snapshots__/generator.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/prisma-models/__snapshots__/generator.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/generators/prisma-models/generator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/generators/prisma-models/generator.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/__snapshots__/get-model-path.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/__snapshots__/get-model-path.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/create-temporary-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/create-temporary-file.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/delete-all-files-in-directory.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/delete-all-files-in-directory.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/get-model-by-name.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/get-model-by-name.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/get-model-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/get-model-path.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/get-php-arguments-with-defaults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/get-php-arguments-with-defaults.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/helpers/get-related-field-of-related-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/helpers/get-related-field-of-related-model.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/get-cast-and-rules-from-field.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/get-cast-and-rules-from-field.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/get-default-from-field.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/get-default-from-field.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/get-phpdoc-properties-from-field.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/get-phpdoc-properties-from-field.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/get-relations-from-model.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/get-relations-from-model.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/php-cs-fixer.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/php-cs-fixer.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/__snapshots__/prettier.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/__snapshots__/prettier.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/find-on-documentation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/find-on-documentation.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-cast-and-rules-from-field.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-cast-and-rules-from-field.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-class-from-fqcn.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-class-from-fqcn.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-default-from-field.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-default-from-field.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-from-documentation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-from-documentation.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-phpdoc-properties-from-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-phpdoc-properties-from-field.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/get-relations-from-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/get-relations-from-model.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/php-cs-fixer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/php-cs-fixer.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/prettier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/prettier.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-database-field-attribute.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-database-field-attribute.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-default-field-attribute.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-default-field-attribute.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-field-line.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-field-line.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-field-lines.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-field-lines.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-map-field-attribute.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-map-field-attribute.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-model-lines.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-model-lines.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-unsupported-fields.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/__snapshots__/get-unsupported-fields.test.ts.snap -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-database-field-attribute.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-database-field-attribute.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-default-field-attribute.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-default-field-attribute.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-field-line.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-field-line.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-field-lines.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-field-lines.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-map-field-attribute.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-map-field-attribute.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-model-lines.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-model-lines.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/raw-schema/get-unsupported-fields.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/raw-schema/get-unsupported-fields.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/match-case.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/match-case.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/plural.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/plural.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/singular.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/singular.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/snake.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/snake.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/ucfirst.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/ucfirst.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/strings/ucwords.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/strings/ucwords.test.ts -------------------------------------------------------------------------------- /packages/generator/src/__tests__/utils/write-file-safely.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/__tests__/utils/write-file-safely.test.ts -------------------------------------------------------------------------------- /packages/generator/src/bin.ts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import './generator'; 3 | -------------------------------------------------------------------------------- /packages/generator/src/errors/composite-key-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/composite-key-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/composite-key-on-relation-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/composite-key-on-relation-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/cuid-not-supported-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/cuid-not-supported-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/field-not-found-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/field-not-found-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/fillable-guarded-conflict-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/fillable-guarded-conflict-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/hidden-visible-conflict-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/hidden-visible-conflict-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/invalid-laravel-timestamps-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/invalid-laravel-timestamps-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/mapped-field-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/mapped-field-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/mass-assignable-conflict-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/mass-assignable-conflict-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/model-not-found-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/model-not-found-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/multiple-data-sources-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/multiple-data-sources-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/multiple-inheritance-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/multiple-inheritance-error.ts -------------------------------------------------------------------------------- /packages/generator/src/errors/too-many-paths-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/errors/too-many-paths-error.ts -------------------------------------------------------------------------------- /packages/generator/src/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/generator.ts -------------------------------------------------------------------------------- /packages/generator/src/generators/enums/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/generators/enums/generator.ts -------------------------------------------------------------------------------- /packages/generator/src/generators/models/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/generators/models/generator.ts -------------------------------------------------------------------------------- /packages/generator/src/generators/prisma-models/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/generators/prisma-models/generator.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/create-temporary-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/create-temporary-file.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/delete-all-files-in-directory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/delete-all-files-in-directory.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-database-name-from-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-database-name-from-field.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-enum-fqcn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-enum-fqcn.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-by-name.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-by-name.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-classname.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-classname.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-extend.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-extend.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-fqcn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-fqcn.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-implements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-implements.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-path.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-path.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-model-traits.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-model-traits.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-php-arguments-with-defaults.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-php-arguments-with-defaults.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-prisma-fqcn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-prisma-fqcn.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-related-field-of-related-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-related-field-of-related-model.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/get-table-name-from-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/get-table-name-from-model.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-autoincrement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-autoincrement.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-created-timestamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-created-timestamp.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-cuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-cuid.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-deleted-timestamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-deleted-timestamp.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-eager-loaded.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-eager-loaded.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-enum.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-fillable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-fillable.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-guarded.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-guarded.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-hidden.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-hidden.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-read-only.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-read-only.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-relation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-relation.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-touching.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-touching.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-updated-timestamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-updated-timestamp.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-uuid.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-field-visible.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-field-visible.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-model-mass-assignable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-model-mass-assignable.ts -------------------------------------------------------------------------------- /packages/generator/src/helpers/is-model-pivot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/helpers/is-model-pivot.ts -------------------------------------------------------------------------------- /packages/generator/src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/tsconfig.json -------------------------------------------------------------------------------- /packages/generator/src/utils/find-on-documentation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/find-on-documentation.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-cast-and-rules-from-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-cast-and-rules-from-field.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-class-from-fqcn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-class-from-fqcn.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-default-from-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-default-from-field.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-from-documentation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-from-documentation.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-phpdoc-properties-from-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-phpdoc-properties-from-field.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-polymorphic-relations-from-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-polymorphic-relations-from-model.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/get-relations-from-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/get-relations-from-model.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/php-cs-fixer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/php-cs-fixer.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/prettier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/prettier.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-database-field-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-database-field-attribute.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-default-field-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-default-field-attribute.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-field-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-field-attribute.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-field-line.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-field-line.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-field-lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-field-lines.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-map-field-attribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-map-field-attribute.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-model-lines.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-model-lines.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/raw-schema/get-unsupported-fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/raw-schema/get-unsupported-fields.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/match-case.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/match-case.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/plural.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/plural.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/singular.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/singular.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/snake.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/snake.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/ucfirst.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/ucfirst.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/strings/ucwords.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/strings/ucwords.ts -------------------------------------------------------------------------------- /packages/generator/src/utils/write-file-safely.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/src/utils/write-file-safely.ts -------------------------------------------------------------------------------- /packages/generator/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/generator/tsconfig.json -------------------------------------------------------------------------------- /packages/usage/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | prisma/migrations/ 3 | .env 4 | -------------------------------------------------------------------------------- /packages/usage/generated/app/Enums/Prisma/Role.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Enums/Prisma/Role.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Category.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Category.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/CategoryPost.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/CategoryPost.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Post.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Post.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Prisma/PrismaCategory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Prisma/PrismaCategory.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Prisma/PrismaCategoryPost.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Prisma/PrismaCategoryPost.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Prisma/PrismaPost.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Prisma/PrismaPost.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/Prisma/PrismaUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/Prisma/PrismaUser.php -------------------------------------------------------------------------------- /packages/usage/generated/app/Models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/generated/app/Models/User.php -------------------------------------------------------------------------------- /packages/usage/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/package.json -------------------------------------------------------------------------------- /packages/usage/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/packages/usage/prisma/schema.prisma -------------------------------------------------------------------------------- /tools/php-cs-fixer/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .php-cs-fixer.cache 3 | -------------------------------------------------------------------------------- /tools/php-cs-fixer/.php-cs.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/tools/php-cs-fixer/.php-cs.dist.php -------------------------------------------------------------------------------- /tools/php-cs-fixer/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/tools/php-cs-fixer/composer.json -------------------------------------------------------------------------------- /tools/php-cs-fixer/composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/tools/php-cs-fixer/composer.lock -------------------------------------------------------------------------------- /tsconfig.compiler.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/tsconfig.compiler.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/datomatic/prisma-laravel-generator/HEAD/yarn.lock --------------------------------------------------------------------------------