Skip to content

Releases: datomatic/prisma-laravel-generator

v1.0.3

29 Aug 09:01
Compare
Choose a tag to compare

1.0.3 (2022-08-29)

Bug Fixes

v1.0.2

29 Aug 07:19
Compare
Choose a tag to compare

1.0.2 (2022-08-29)

Bug Fixes

v1.0.1

26 Aug 09:33
Compare
Choose a tag to compare

1.0.1 (2022-08-26)

Bug Fixes

  • model path not deactivable (944e678)
  • pivot fields passed to belongstomany relation (3aa2583)

v1.0.0

25 Aug 17:50
Compare
Choose a tag to compare

1.0.0 (2022-08-25)

Bug Fixes

  • add app folder on output location (95f142e)
  • alias "as" case insensitive match (0950fc5)
  • delete all files in prisma directory before generating new ones (8e25cbe)
  • inverted nullable and required (12095bf)
  • schema.prisma on example with corrected provider and phpcsfixer path (be70528)
  • tests on windows (7013776)
  • use always explicit column names and tables for relations (allows inheritance of models) (2e7a716)
  • use backed enums also when mapping is not defined in the schema to match the db mapping (f383a23)

Features

  • add "Prisma" prefix to generated models (cc239f7)
  • all settings available from schema (ee628f2)
  • allow multiple separate comments for fields and models (a60b76a)
  • carbonimmutable if datetime is readonly, implements and extends model annotations (408d944)
  • created_at, updated_at and deleted_at considered as read-only (0383695)
  • get attributes and comments from raw schema file (c3fd8cc)
  • id is read-only by default (ff9fc67)
  • immutable_datetime only for read-only fields (c650940)
  • inherited models generator (28b13b1)
  • model and enum export path annotation (b818093)
  • model generation (w/o relations), prettier before php-cs-fixer, raw schema analysis (f5f9ea7)
  • prisma 4 (a4c16ef)
  • prisma snake_cased models saved in singular ucwords format (5d3df9b)
  • project setup (9d9b37e)
  • relations (0015e2c)
  • timestamps default by name (445920d)
  • traits (b6f3e93)