Skip to content

Commit

Permalink
💾 Add resource_id and expired_at to Synchronizations
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Oct 1, 2018
1 parent 3322464 commit 02ca77e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Synchronization.php
Expand Up @@ -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()
Expand Down
Expand Up @@ -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();
});
Expand Down

0 comments on commit 02ca77e

Please sign in to comment.