08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
69
app/Models/ShoppingUserMemberLog.php
Normal file
69
app/Models/ShoppingUserMemberLog.php
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\User;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class ShoppingUserMemberLog
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $pre_member_id
|
||||
* @property int $shopping_user_id
|
||||
* @property int $new_member_id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
* @property User $user
|
||||
* @property ShoppingUser $shopping_user
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog whereNewMemberId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog wherePreMemberId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog whereShoppingUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|ShoppingUserMemberLog whereUpdatedAt($value)
|
||||
* @property-read User $new_member
|
||||
* @property-read User $pre_member
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class ShoppingUserMemberLog extends Model
|
||||
{
|
||||
protected $table = 'shopping_user_member_logs';
|
||||
|
||||
protected $casts = [
|
||||
'pre_member_id' => 'int',
|
||||
'shopping_user_id' => 'int',
|
||||
'new_member_id' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'pre_member_id',
|
||||
'shopping_user_id',
|
||||
'new_member_id'
|
||||
];
|
||||
|
||||
public function pre_member()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'pre_member_id');
|
||||
}
|
||||
|
||||
public function new_member()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'new_member_id');
|
||||
}
|
||||
|
||||
|
||||
public function shopping_user()
|
||||
{
|
||||
return $this->belongsTo(ShoppingUser::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue