提交代码
This commit is contained in:
22
app/Models/Profit.php
Normal file
22
app/Models/Profit.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use RuLong\Identity\Models\Identity;
|
||||
|
||||
class Profit extends Model
|
||||
{
|
||||
protected $dates = [
|
||||
'setted_at',
|
||||
];
|
||||
|
||||
public function identity()
|
||||
{
|
||||
return $this->belongsTo(Identity::class);
|
||||
}
|
||||
|
||||
public function logs()
|
||||
{
|
||||
return $this->hasMany(ProfitLog::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user