58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Business;
|
|
|
|
use App\Abstracts\Model;
|
|
|
|
class StoreInformation extends Model
|
|
{
|
|
protected $table = 'business_store_information';
|
|
|
|
protected $fillable = [
|
|
'company_id',
|
|
'opened_at',
|
|
'erp_store_name',
|
|
'unified_social_credit_code',
|
|
'company_name',
|
|
'trademark_number',
|
|
'trademark_name',
|
|
'platform',
|
|
'profit_center',
|
|
'store_manager',
|
|
'store_status',
|
|
'store_type',
|
|
'channel_mode',
|
|
];
|
|
|
|
protected $casts = [
|
|
'company_id' => 'integer',
|
|
'opened_at' => 'date:Y-m-d',
|
|
];
|
|
|
|
public static function columnLabels(): array
|
|
{
|
|
return [
|
|
'opened_at' => '开店时间',
|
|
'erp_store_name' => 'ERP系统店铺名称',
|
|
'unified_social_credit_code' => '公司社会统一信用码',
|
|
'company_name' => '公司名称',
|
|
'trademark_number' => '商标号',
|
|
'trademark_name' => '商标名称',
|
|
'platform' => '平台',
|
|
'profit_center' => '店铺所属利润中心',
|
|
'store_manager' => '店铺负责人',
|
|
'store_status' => '店铺状态',
|
|
'store_type' => '店铺类型',
|
|
'channel_mode' => '渠道模式',
|
|
];
|
|
}
|
|
|
|
public static function fieldTypes(): array
|
|
{
|
|
return [
|
|
'opened_at' => 'date',
|
|
'platform' => 'text',
|
|
];
|
|
}
|
|
}
|