公海,转让,名片

This commit is contained in:
2025-03-31 14:25:38 +08:00
parent 8b19071d1c
commit 4cde16f76a
7 changed files with 213 additions and 22 deletions
+7
View File
@@ -121,4 +121,11 @@ class Customer extends Model
return $this->belongsToMany(Tag::class, 'customer_tag', 'customer_id', 'tag_id')
->withTimestamps(); // 如果需要记录关联时间
}
// 定义与 变更历史 的一对多关系
public function his()
{
return $this->hasMany(CustomerHis::class, 'customer_id', 'id');
}
}