format('Y-m-d H:i:s'); } public function dept() { return $this->hasOne(SysDept::class, 'dept_id', 'join_farm_plot_dept_id'); } public function user() { return $this->hasOne(SysUser::class, 'user_id', 'join_farm_plot_user_id'); } public function member() { return $this->hasOne(Member::class, 'member_id', 'join_farm_plot_member_id'); } public function memberInfo() { return $this->hasOne(MemberInfo::class, 'join_info_member_id', 'join_farm_plot_member_id'); } public function memberCert() { return $this->hasOne(MemberCert::class, 'join_cert_member_id', 'join_farm_plot_member_id'); } }