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