12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\DataApiNew\Models;
- use Illuminate\Database\Eloquent\SoftDeletes;
- use Illuminate\Database\Eloquent\Model;
- use Dcat\Admin\Traits\HasDateTimeFormatter;
- // 用户接口配置
- class AgentApi extends Model
- {
- use SoftDeletes, HasDateTimeFormatter;
- protected $table = 'agent_api';
- protected $dateFormat = 'Y-m-d H:i:s';
-
- // 表字段
- protected $fillable = [
- 'id',
- 'user_id', // 用户id
- 'user_key',// 用户标识
- 'private_key', // 私钥
- 'public_key', // 公钥
- 'document_path', // 文档文件
- 'status', // 状态 0禁止 1允许
- 'created_at', // 创建时间
- 'updated_at', // 更新时间
- 'deleted_at', // 删除时间
- 'remark', // 备注
- 'ip_whitelist', // IP白名单
- ];
- // 查询字段
- public static $selectFields = [
- 'id',
- 'user_id', // 用户id
- 'user_key',// 用户标识
- 'private_key', // 私钥
- 'public_key', // 公钥
- 'document_path', // 文档文件
- 'status', // 状态 0禁止 1允许
- 'created_at', // 创建时间
- 'remark', // 备注
- 'ip_whitelist', // IP白名单
- ];
- }
|