| 1 | <?php  | 
            ||
| 11 | class SimulatorHistory extends Model  | 
            ||
| 12 | { | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @var string  | 
            ||
| 16 | */  | 
            ||
| 17 | protected $table = "simulator_history";  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * The attributes that are mass assignable.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @var array  | 
            ||
| 23 | */  | 
            ||
| 24 | protected $fillable = [  | 
            ||
| 25 | 'user_id',  | 
            ||
| 26 | 'name',  | 
            ||
| 27 | 'quantity_to_buy',  | 
            ||
| 28 | 'quote_to_buy',  | 
            ||
| 29 | 'price_to_buy',  | 
            ||
| 30 | 'quantity_to_sell',  | 
            ||
| 31 | 'quote_to_sell',  | 
            ||
| 32 | 'tax_percent_to_discount',  | 
            ||
| 33 | 'price_to_sell',  | 
            ||
| 34 | 'gains_or_losses'  | 
            ||
| 35 | ];  | 
            ||
| 36 | |||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo  | 
            ||
| 40 | */  | 
            ||
| 41 | public function getUser()  | 
            ||
| 45 | |||
| 46 | |||
| 47 | }  | 
            ||
| 48 |