Stream.php 873 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id (主键)
  6. * @property integer $user_id 用户ID
  7. * @property string $money 余额
  8. * @property string $total_money 总余额
  9. * @property integer $type 流水类型
  10. * @property integer $mold 钱包类型
  11. * @property integer $source_id 来源ID
  12. * @property integer $add_time 规则ID
  13. * @property string $created_at 创建时间
  14. * @property string $updated_at 更新时间
  15. */
  16. class Stream extends Base
  17. {
  18. /**
  19. * The table associated with the model.
  20. *
  21. * @var string
  22. */
  23. protected $table = 'wa_stream';
  24. /**
  25. * The primary key associated with the table.
  26. *
  27. * @var string
  28. */
  29. protected $primaryKey = 'id';
  30. public function userData()
  31. {
  32. return $this->hasOne(User::class,'id','user_id');
  33. }
  34. }