Skip to content

Commit

Permalink
Add support of int and timestamp types (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
antevgen authored Apr 30, 2024
1 parent 09d0b34 commit 4281cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Console/GenerateFactoryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,12 @@ protected function mapByType(string $field, bool $nullable = false): ?string
'text' => $this->fakerPrefix('text', $nullable),
'date' => $this->fakerPrefix('date()', $nullable),
'time' => $this->fakerPrefix('time()', $nullable),
'timestamp' => $this->fakerPrefix('datetime()', $nullable),
'guid' => $this->fakerPrefix('uuid', $nullable),
'datetimetz' => $this->fakerPrefix('dateTime()', $nullable),
'datetime' => $this->fakerPrefix('dateTime()', $nullable),
'integer' => $this->fakerPrefix('randomNumber()', $nullable),
'int' => $this->fakerPrefix('randomNumber()', $nullable),
'bigint' => $this->fakerPrefix('randomNumber()', $nullable),
'smallint' => $this->fakerPrefix('randomNumber()', $nullable),
'tinyint' => $this->fakerPrefix('randomNumber(1)', $nullable),
Expand Down

0 comments on commit 4281cc0

Please sign in to comment.