Files
ladill-meet/app/Models/BreakoutRoom.php
T
isaaccladandCursor 965fb992e9
Deploy Ladill Meet / deploy (push) Failing after 7s
Initial Ladill Meet release.
Phases 0–18: core meetings, webinar, breakouts, team chat, live streaming, town hall, billing, and Ladill Mail calendar wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 23:35:29 +00:00

50 lines
1.1 KiB
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToOwner;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Str;
class BreakoutRoom extends Model
{
use BelongsToOwner;
protected $table = 'meet_breakout_rooms';
protected $fillable = [
'uuid', 'owner_ref', 'session_id', 'name', 'media_room_name', 'status', 'closes_at',
];
protected function casts(): array
{
return ['closes_at' => 'datetime'];
}
protected static function booted(): void
{
static::creating(function (BreakoutRoom $room) {
if (empty($room->uuid)) {
$room->uuid = (string) Str::uuid();
}
});
}
public function getRouteKeyName(): string
{
return 'uuid';
}
public function session(): BelongsTo
{
return $this->belongsTo(Session::class, 'session_id');
}
public function assignments(): HasMany
{
return $this->hasMany(BreakoutAssignment::class, 'breakout_room_id');
}
}