51 lines
783 B
PHP
51 lines
783 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Stats extends Model
|
|
{
|
|
/**
|
|
* The database table uses by the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = 'stats';
|
|
|
|
/**
|
|
* The attributes that should be mutated to dates.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $dates = [
|
|
'created_at',
|
|
];
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'node_id',
|
|
'pin',
|
|
'humidity',
|
|
'temperature',
|
|
'isoutside',
|
|
'gm3',
|
|
'created_at'
|
|
];
|
|
|
|
/**
|
|
* The attributes excluded from the model's JSON form
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = [
|
|
//
|
|
];
|
|
|
|
|
|
}
|