Permalink
Browse files

💾 Add resource_id and expired_at to Synchronizations

  • Loading branch information...
lorisleiva committed Oct 1, 2018
1 parent 3322464 commit 02ca77e45925782378e2646f757fa6e3a7c804c6
View
@@ -10,11 +10,12 @@ class Synchronization extends Model
public $incrementing = false;
protected $fillable = [
'token', 'last_synchronized_at'
'token', 'last_synchronized_at', 'resource_id', 'expired_at'
];
protected $casts = [
'last_synchronized_at' => 'datetime',
'expired_at' => 'datetime',
];
public function ping()
@@ -21,8 +21,10 @@ public function up()
// Data.
$table->string('token')->nullable();
$table->string('resource_id')->nullable();
// Timestamps.
$table->datetime('expired_at')->nullable();
$table->datetime('last_synchronized_at');
$table->timestamps();
});

0 comments on commit 02ca77e

Please sign in to comment.