ReclamationView.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. 'production_order_id',
  15. 'reclamation_type_id',
  16. 'reclamation_type_code',
  17. 'reclamation_type_name',
  18. 'user_id',
  19. 'status_id',
  20. 'create_date',
  21. 'finish_date',
  22. 'reason',
  23. 'guarantee',
  24. 'whats_done',
  25. 'created_at',
  26. 'updated_at',
  27. 'start_work_date',
  28. 'work_days',
  29. 'brigadier_id',
  30. 'comment',
  31. 'user_name',
  32. 'brigadier_name',
  33. 'year',
  34. 'order_name',
  35. 'object_address',
  36. 'district_name',
  37. 'area_name',
  38. 'object_type_name',
  39. 'status_name',
  40. 'maf_installation_year',
  41. ];
  42. }