Initial commit

This commit is contained in:
2026-02-03 10:38:46 +01:00
commit eb304f4b14
144 changed files with 22605 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class GoogleDriveConnection extends Model
{
protected $fillable = [
'user_id',
'access_token',
'refresh_token',
'token_expires_at',
'account_email',
];
protected function casts(): array
{
return [
'token_expires_at' => 'datetime',
'access_token' => 'encrypted',
'refresh_token' => 'encrypted',
];
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}