<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id (主键)
 * @property integer $user_id 用户ID
 * @property string $money 余额
 * @property string $total_money 总余额
 * @property integer $type 流水类型 
 * @property integer $mold 钱包类型 
 * @property integer $source_id 来源ID
 * @property integer $add_time 规则ID
 * @property string $created_at 创建时间
 * @property string $updated_at 更新时间
 */
class Stream extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_stream';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    public function userData()
    {
        return $this->hasOne(User::class,'id','user_id');
    }
    
}
