Files
cunkebao_v3/Server/application/api/model/WechatAccountModel.php

33 lines
994 B
PHP
Raw Normal View History

2025-03-17 10:09:27 +08:00
<?php
2025-03-24 16:42:36 +08:00
namespace app\api\model;
2025-03-17 10:09:27 +08:00
use think\Model;
class WechatAccountModel extends Model
{
2025-03-27 17:26:31 +08:00
// 设置表名
2025-11-20 16:07:57 +08:00
protected $table = 's2_wechat_account';
// 定义字段类型
protected $type = [
'healthScore' => 'integer',
'baseScore' => 'integer',
'dynamicScore' => 'integer',
'isModifiedAlias' => 'integer',
'frequentCount' => 'integer',
'consecutiveNoFrequentDays' => 'integer',
'lastFrequentTime' => 'integer',
'lastNoFrequentTime' => 'integer',
'scoreUpdateTime' => 'integer',
];
// 允许批量赋值的字段
protected $field = [
'id', 'wechatId', 'alias', 'nickname', 'avatar', 'gender', 'region', 'signature',
'healthScore', 'baseScore', 'dynamicScore', 'isModifiedAlias',
'lastFrequentTime', 'frequentCount', 'lastNoFrequentTime',
'consecutiveNoFrequentDays', 'scoreUpdateTime',
'createTime', 'updateTime', 'status', 'isDeleted'
];
2025-03-17 10:09:27 +08:00
}