ReclamationView.php 994 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. class ReclamationView extends Model
  6. {
  7. use SoftDeletes;
  8. const DEFAULT_SORT_BY = 'create_date';
  9. const DEFAULT_ORDER_BY = 'desc';
  10. protected $table = 'reclamations_view';
  11. protected $fillable = [
  12. 'id',
  13. 'order_id',
  14. 'reclamation_type_id',
  15. 'reclamation_type_code',
  16. 'reclamation_type_name',
  17. 'user_id',
  18. 'status_id',
  19. 'create_date',
  20. 'finish_date',
  21. 'reason',
  22. 'guarantee',
  23. 'whats_done',
  24. 'created_at',
  25. 'updated_at',
  26. 'start_work_date',
  27. 'work_days',
  28. 'brigadier_id',
  29. 'comment',
  30. 'user_name',
  31. 'brigadier_name',
  32. 'year',
  33. 'order_name',
  34. 'object_address',
  35. 'district_name',
  36. 'area_name',
  37. 'object_type_name',
  38. 'status_name',
  39. 'maf_installation_year',
  40. ];
  41. }