| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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', // 创建 处理 完结
- 'tag'
- ];
- 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);
- }
- }
|