35 lines
596 B
PHP
35 lines
596 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SyncToken extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'sync_tokens';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $fillable = [
|
|
'account_id',
|
|
'user_id',
|
|
'name',
|
|
'timestamp',
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast.
|
|
*
|
|
* @var array<string,string>
|
|
*/
|
|
protected $casts = [
|
|
'timestamp' => 'datetime',
|
|
];
|
|
}
|