1234567891011121314151617181920212223242526 |
- <?php
- namespace app\common\model;
- use app\admin\model\Admin;
- use think\Model;
- /**
- * 配置模型
- */
- class MobilePriceLog extends Model
- {
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = true;
- public function admin()
- {
- return $this->belongsTo(Admin::class, 'admin_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- public function user()
- {
- return $this->belongsTo(User::class, 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- }
|