Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TblCofraiBulkSyncRuns | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | |
| 8 | class TblCofraiBulkSyncRuns extends Model |
| 9 | { |
| 10 | use HasFactory; |
| 11 | |
| 12 | protected $table = 'tbl_cofrai_bulk_sync_runs'; |
| 13 | |
| 14 | public $timestamps = true; |
| 15 | |
| 16 | protected $fillable = [ |
| 17 | 'triggered_by', |
| 18 | 'triggered_by_id', |
| 19 | 'regions', |
| 20 | 'date_from', |
| 21 | 'date_to', |
| 22 | 'fields', |
| 23 | 'suppress_approval_ops', |
| 24 | 'suppress_approval_fin', |
| 25 | 'started_at', |
| 26 | 'ended_at', |
| 27 | 'total_cofrai_budgets', |
| 28 | 'updated_count', |
| 29 | 'created_count', |
| 30 | 'skipped_count', |
| 31 | 'error_count', |
| 32 | 'errors_json', |
| 33 | ]; |
| 34 | |
| 35 | protected $casts = [ |
| 36 | 'regions' => 'array', |
| 37 | 'fields' => 'array', |
| 38 | 'errors_json' => 'array', |
| 39 | 'suppress_approval_ops' => 'boolean', |
| 40 | 'suppress_approval_fin' => 'boolean', |
| 41 | 'started_at' => 'datetime', |
| 42 | 'ended_at' => 'datetime', |
| 43 | 'date_from' => 'date:Y-m-d', |
| 44 | 'date_to' => 'date:Y-m-d', |
| 45 | ]; |
| 46 | } |