feat: add social_accounts table and provider tracking with verified-email linking

This commit is contained in:
2026-03-19 23:15:01 +01:00
parent 10f612a901
commit 1b9bf0efac
3 changed files with 122 additions and 29 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class SocialAccount extends Model
{
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'user_id',
'provider',
'provider_id',
];
/**
* Get the user that owns the social account.
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}