forked from zanfranceschi/rinha-de-backend-2023-q3
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c2021
commit ebd4690
Showing
5 changed files
with
78 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Model; | ||
|
||
use Hyperf\DbConnection\Model\Model; | ||
|
||
/** | ||
*/ | ||
class Person extends Model | ||
{ | ||
public bool $timestamps = false; | ||
|
||
/** | ||
* The table associated with the model. | ||
*/ | ||
protected ?string $table = 'person'; | ||
|
||
/** | ||
* The attributes that are mass assignable. | ||
*/ | ||
protected array $fillable = [ | ||
'id', | ||
'nick', | ||
'name', | ||
'birth', | ||
'stack', | ||
]; | ||
|
||
/** | ||
* The attributes that should be cast to native types. | ||
*/ | ||
protected array $casts = []; | ||
|
||
protected array $attributes = [ | ||
'stack' => '[]', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters