mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-22 14:04:06 +00:00
41 lines
777 B
PHP
41 lines
777 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class UserSocialAccount
|
|
* @package App\Models
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property string $app_id
|
|
* @property int $platform
|
|
*
|
|
* @property \App\Models\User $user
|
|
*/
|
|
class UserSocialAccount extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'user_social_accounts';
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'deleted_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return BelongsTo
|
|
*/
|
|
public function user(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'user_id', 'id');
|
|
}
|
|
}
|