ReclamationView.php 897 B

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