<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasOne;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class District
 * @package App\Models
 *
 * @property \App\Models\User user_id
 * @property string app_id
 * @property int platform
 */
class UserSocialAccount extends AbstractModel
{
    use SoftDeletes;

    protected $table = 'user_social_accounts';

    protected $dates = ['deleted_at'];

    /**
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }
}
