add user migration
This commit is contained in:
parent
50814ffd60
commit
6fbc1fb4f5
5 changed files with 113 additions and 1 deletions
21
backend/database/UserModel.php
Normal file
21
backend/database/UserModel.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Database;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserModel extends Model
|
||||
{
|
||||
protected $table = 'users';
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
protected $fillable = [
|
||||
'email',
|
||||
'password_hash',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue