TaskHistory.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /* * ********************************************************************
  3. * ProxmoxAddon product developed. (Aug 22, 2018)
  4. * *
  5. *
  6. * CREATED BY MODULESGARDEN -> http://modulesgarden.com
  7. * CONTACT -> contact@modulesgarden.com
  8. *
  9. *
  10. * This software is furnished under a license and may be used and copied
  11. * only in accordance with the terms of such license and with the
  12. * inclusion of the above copyright notice. This software or any other
  13. * copies thereof may not be provided or otherwise made available to any
  14. * other person. No title to and ownership of the software is hereby
  15. * transferred.
  16. *
  17. *
  18. * ******************************************************************** */
  19. namespace ModulesGarden\ProxmoxAddon\App\Models;
  20. use Illuminate\Database\Eloquent\model as EloquentModel;
  21. use ModulesGarden\ProxmoxAddon as main;
  22. /**
  23. * Description of RangeVm
  24. *
  25. * @author Pawel Kopec <pawelk@modulesgardne.com>
  26. * @property int $id
  27. * @property int $hosting_id
  28. * @property string $upid
  29. * @property string $name
  30. * @property string $description
  31. * @property string $node
  32. * @property int $vmid
  33. * @property int $status
  34. * @property string $start_time
  35. * @property main\Core\Models\Whmcs\Hosting $hosting related client hosting
  36. */
  37. class TaskHistory extends EloquentModel
  38. {
  39. public $timestamps = false;
  40. protected $table = 'mg_proxmox_addon_tasks';
  41. /**
  42. *
  43. *
  44. */
  45. protected $guarded = ['id'];
  46. /**
  47. *
  48. * @var array
  49. */
  50. protected $fillable = ['id', 'hosting_id', 'upid', 'name', 'description', 'node', 'vmid', 'status', 'start_time'];
  51. protected $softDelete = true;
  52. public function hosting()
  53. {
  54. return $this->belongsTo(main\Core\Models\Whmcs\Hosting::class, 'hosting_id');
  55. }
  56. }