2019-05-06 12:29:29 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Netmail extends Model
|
|
|
|
{
|
|
|
|
protected $dates = ['date'];
|
|
|
|
protected $fillable = ['date','msgid','from_ftn'];
|
2019-05-20 07:18:18 +00:00
|
|
|
public $timestamps = FALSE; // @todo Remove, seems an issue with cockroach updating tables.
|
2019-05-06 12:29:29 +00:00
|
|
|
|
|
|
|
public function kludges()
|
|
|
|
{
|
|
|
|
return $this->belongsToMany(Kludge::class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function paths()
|
|
|
|
{
|
|
|
|
return $this->belongsToMany(Path::class,NULL,NULL,'node_id');
|
|
|
|
}
|
|
|
|
}
|