| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- use App\Traits\ModelLogChanging;
- class StationCacheShelfGrid extends Model
- {
- use ModelLogChanging;
- protected $fillable = ['station_id','material_box_id','grid_id','status'];
- public static $status = [
- '0' => '无',
- '1' => '待处理',
- '2' => '完成',
- '3' => '异常'
- ];
- public function station(): BelongsTo
- {
- return $this->belongsTo(Station::class);
- }
- public function materialBox(): BelongsTo
- {
- return $this->belongsTo(MaterialBox::class);
- }
- }
|