first commit

This commit is contained in:
2026-01-25 18:18:09 +08:00
commit 509312e604
8136 changed files with 2349298 additions and 0 deletions

113
models/Xiansuo.php Normal file
View File

@ -0,0 +1,113 @@
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "xiansuo".
*
* @property int $id 主键ID
* @property int|null $xs_id 线索ID业务ID
* @property int|null $leads_id 广告平台线索ID
* @property string|null $name 姓名
* @property string|null $telphone 电话
* @property string|null $weixin 微信
* @property string|null $gender 性别
* @property string|null $location 所在地
* @property string|null $tel_logic_location 电话逻辑归属地
* @property string|null $keshi 科室
* @property string|null $gj_value 跟进状态
* @property string|null $beizhu 备注
* @property string|null $adv_id 广告账户ID
* @property string|null $adv_name 广告账户名称
* @property int|null $promotion_id 计划ID
* @property string|null $promotion_name 计划名
* @property string|null $app_name 来源平台
* @property string|null $root_adv_id 根账户ID
* @property string|null $external_url 外部URL
* @property string|null $clue_convert_status 转化状态
* @property int|null $user_id 分配用户ID
* @property string|null $user_name 分配用户名
* @property int|null $is_daili 是否代理 0否 1是
* @property string|null $remark_dict 问答/聊天记录
* @property string|null $content 原始内容JSON
* @property string|null $push_return_data 推送返回数据
* @property string|null $date 分配时间
* @property string|null $created_at 创建时间
* @property string|null $updated_at 更新时间
*/
class Xiansuo extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'xiansuo';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['xs_id', 'promotion_id', 'user_id', 'remark_dict', 'content', 'push_return_data', 'date', 'created_at', 'updated_at'], 'default', 'value' => null],
[['is_daili'], 'default', 'value' => 0],
[['user_name'], 'default', 'value' => ''],
[['id'], 'required'],
[['id', 'xs_id', 'leads_id', 'promotion_id', 'user_id', 'is_daili'], 'integer'],
[['remark_dict', 'date', 'created_at', 'updated_at'], 'safe'],
[['content', 'push_return_data'], 'string'],
[['name', 'weixin', 'keshi', 'gj_value', 'adv_id', 'app_name', 'root_adv_id', 'clue_convert_status', 'user_name'], 'string', 'max' => 50],
[['telphone'], 'string', 'max' => 20],
[['gender'], 'string', 'max' => 10],
[['location', 'tel_logic_location', 'adv_name'], 'string', 'max' => 100],
[['beizhu', 'external_url'], 'string', 'max' => 255],
[['promotion_name'], 'string', 'max' => 150],
[['id'], 'unique'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => '主键ID',
'xs_id' => '线索ID业务ID',
'leads_id' => '广告平台线索ID',
'name' => '姓名',
'telphone' => '电话',
'weixin' => '微信',
'gender' => '性别',
'location' => '所在地',
'tel_logic_location' => '电话逻辑归属地',
'keshi' => '科室',
'gj_value' => '跟进状态',
'beizhu' => '备注',
'adv_id' => '广告账户ID',
'adv_name' => '广告账户名称',
'promotion_id' => '计划ID',
'promotion_name' => '计划名',
'app_name' => '来源平台',
'root_adv_id' => '根账户ID',
'external_url' => '外部URL',
'clue_convert_status' => '转化状态',
'user_id' => '分配用户ID',
'user_name' => '分配用户名',
'is_daili' => '是否代理 0否 1是',
'remark_dict' => '问答/聊天记录',
'content' => '原始内容JSON',
'push_return_data' => '推送返回数据',
'date' => '分配时间',
'created_at' => '创建时间',
'updated_at' => '更新时间',
];
}
}