| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace plugin\admin\app\model;
- use plugin\admin\app\model\Base;
- /**
- * @property integer $id (主键)
- * @property integer $num 邀请人数
- * @property integer $money 奖励
- * @property string $grade_name 等级名称
- * @property integer $sort 排序
- * @property integer $status 状态 0 禁用 1正常
- */
- class RaffleLog extends Base
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'wa_raffle_log';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = false;
- public function userData()
- {
- return $this->hasOne(User::class,'id','user_id');
- }
- public function raffle()
- {
- return $this->hasOne(Raffle::class,'id','raffle_id');
- }
-
- }
|