初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
23
app/Models/business/EnterpriseModel.php
Normal file
23
app/Models/business/EnterpriseModel.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\business;
|
||||
|
||||
use App\BaseApp\BaseBusinessModel;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
/**
|
||||
* 企业(cc_enterprise)
|
||||
*
|
||||
* 老表只有 name / logo,企业管理模块会补齐联系人、税号、结算方式、默认价格倍率等列。
|
||||
*/
|
||||
class EnterpriseModel extends BaseBusinessModel
|
||||
{
|
||||
protected $table = 'enterprise';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function users(): HasMany
|
||||
{
|
||||
return $this->hasMany(WxUserModel::class, 'enterprise_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user