25 lines
478 B
PHP
25 lines
478 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use MongoDB\Laravel\Eloquent\Model;
|
|
|
|
class SortingHistory extends Model
|
|
{
|
|
protected $connection = 'mongodb';
|
|
protected $collection = 'sorting_histories';
|
|
|
|
protected $fillable = [
|
|
'session_id',
|
|
'classification_date',
|
|
'raw_banana_weight',
|
|
'ripe_banana_weight',
|
|
'raw_orange_weight',
|
|
'ripe_orange_weight'
|
|
];
|
|
|
|
protected $casts = [
|
|
'classification_date' => 'datetime',
|
|
];
|
|
}
|