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

38
api/app/Models/Upload.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Upload extends Model
{
protected $fillable = [
'event_id',
'original_filename',
'stored_filename',
'file_size',
'mime_type',
'google_drive_file_id',
'google_drive_web_link',
'status',
'error_message',
'uploader_name',
'uploader_email',
'upload_started_at',
'upload_completed_at',
];
protected function casts(): array
{
return [
'upload_started_at' => 'datetime',
'upload_completed_at' => 'datetime',
];
}
public function event(): BelongsTo
{
return $this->belongsTo(Event::class);
}
}