| 1 | <?php |
||
| 12 | class Sensor extends Model |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Indicates if the model should be timestamped. |
||
| 16 | * |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | public $timestamps = false; |
||
| 20 | /** |
||
| 21 | * The table associated with the model. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $table = 'sensors'; |
||
| 26 | /** |
||
| 27 | * The primary key column name. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $primaryKey = 'sensors_id'; |
||
| 32 | |||
| 33 | // ---- Define Reletionships ---- |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 37 | */ |
||
| 38 | public function device() |
||
| 42 | |||
| 43 | } |
||
| 44 |