[api] reward + thanks

This commit is contained in:
xiaomlove
2022-03-30 15:37:11 +08:00
parent b613a46b8d
commit 3e4a5766c4
38 changed files with 983 additions and 64 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
class Reward extends NexusModel
{
protected $table = 'magic';
protected $fillable = ['torrentid', 'userid', 'value', ];
public $timestamps = true;
public function user()
{
return $this->belongsTo(User::class, 'userid');
}
}