BookCourseLog.php 465 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\admin\model;
  3. use support\Db;
  4. use support\Model;
  5. /**
  6. * 书院订单详情模型
  7. * Class Users
  8. * @package app\admin\model
  9. */
  10. class BookCourseLog extends Model
  11. {
  12. /**
  13. * The table associated with the model.
  14. *
  15. * @var string
  16. */
  17. protected $table = 'life_book_course_log';
  18. public $timestamps = false;
  19. public function User(){
  20. return $this->belongsTo(User::class,'log_user_id','user_id');
  21. }
  22. }