mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-13 19:52:09 +00:00
feat: some fixes to the ui, imlemented user and guest user, ans used the dahboard
This commit is contained in:
@@ -4,7 +4,17 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $player_id
|
||||
* @property string $room_id
|
||||
* @property int $round
|
||||
* @property string $value
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*/
|
||||
class Vote extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
@@ -21,11 +31,13 @@ class Vote extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/** @return BelongsTo<Room, $this> */
|
||||
public function room(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Room::class);
|
||||
}
|
||||
|
||||
/** @return BelongsTo<Player, $this> */
|
||||
public function player(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Player::class);
|
||||
|
||||
Reference in New Issue
Block a user