<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class History extends Model
{

    use SoftDeletes;

    protected $dates = ['deleted_at'];
    protected $fillable = ['user_id','date','weight','fat','muscle','liquid','bone','trust','sport','recommend','complain','note','system'];
    
    public function user(){
        return $this->belongsTo('App\User','user_id');
    }
}
