Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace App\Models;
use App\Models\Concerns\BelongsToUser;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class RadioSongVote extends Model
{
use BelongsToUser;
#[\Override]
protected $table = 'radio_song_votes';
#[\Override]
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'song_id'];
/** @var array<string, string> */
#[\Override]
protected $casts = [
'voted_at' => 'datetime',
];
public function songRequest(): BelongsTo
{
return $this->belongsTo(RadioSongRequest::class);
}
}