| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App;
- use App\Traits\ModelTimeFormat;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- class WorkOrderProcessLog extends Model
- {
- use ModelTimeFormat;
- protected $fillable = [
- 'work_order_id',
- 'work_order_detail_id',
- 'user_id',
- 'content',
- 'status',
- 'type', // 创建 处理 完结
- ];
- public function workOrder(): BelongsTo
- {
- return $this->belongsTo(WorkOrder::class);
- }
- public function workOrderDetail():BelongsTo
- {
- return $this->belongsTo(WorkOrderDetail::class);
- }
- public function user(): BelongsTo
- {
- return $this->belongsTo(User::class);
- }
- }
|