Deploy Ladill Meet / deploy (push) Failing after 7s
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>
40 lines
895 B
PHP
40 lines
895 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToOwner;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Support\Str;
|
|
|
|
class QaQuestion extends Model
|
|
{
|
|
use BelongsToOwner;
|
|
|
|
protected $table = 'meet_qa_questions';
|
|
|
|
protected $fillable = [
|
|
'uuid', 'owner_ref', 'session_id', 'participant_uuid', 'asker_name',
|
|
'question', 'status', 'answer', 'answered_by', 'upvotes',
|
|
];
|
|
|
|
protected static function booted(): void
|
|
{
|
|
static::creating(function (QaQuestion $q) {
|
|
if (empty($q->uuid)) {
|
|
$q->uuid = (string) Str::uuid();
|
|
}
|
|
});
|
|
}
|
|
|
|
public function getRouteKeyName(): string
|
|
{
|
|
return 'uuid';
|
|
}
|
|
|
|
public function session(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Session::class, 'session_id');
|
|
}
|
|
}
|