| 123456789101112131415161718192021222324252627 |
- <?php
- namespace App;
- use App\Traits\ModelTimeFormat;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- class DepartmentObligationOwner extends Model
- {
- use ModelLogChanging;
- use ModelTimeFormat;
- public $timestamps=false;
- protected $table='department_obligation_owner';
- protected $fillable=[
- 'department_id','obligation_id', 'owner_id', 'valid_time','create_time', 'update_time','delete_flag','failure_time'
- ];
- public function department()
- {
- return $this->hasOne(UserWorkgroup::class,"id","department_id");
- }
- }
|