MobilePriceLog.php 493 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\common\model;
  3. use app\admin\model\Admin;
  4. use think\Model;
  5. /**
  6. * 配置模型
  7. */
  8. class MobilePriceLog extends Model
  9. {
  10. // 自动写入时间戳字段
  11. protected $autoWriteTimestamp = true;
  12. public function admin()
  13. {
  14. return $this->belongsTo(Admin::class, 'admin_id', 'id', [], 'LEFT')->setEagerlyType(0);
  15. }
  16. public function user()
  17. {
  18. return $this->belongsTo(User::class, 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
  19. }
  20. }