Use $id as primaryKey for File Model (#1323)

This commit is contained in:
MartinOscar 2025-05-01 21:26:01 +02:00 committed by GitHub
parent 3f1e99f1df
commit e9ddf80d10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,9 @@ use Illuminate\Http\Client\ConnectionException;
use Sushi\Sushi;
/**
* \App\Models\File.
*
* @property int $id
* @property string $name
* @property Carbon $created_at
* @property Carbon $modified_at
@ -27,12 +30,6 @@ class File extends Model
{
use Sushi;
protected $primaryKey = 'name';
public $incrementing = false;
protected $keyType = 'string';
protected int $sushiInsertChunkSize = 100;
public const ARCHIVE_MIMES = [