Initial commit

This commit is contained in:
2025-11-20 23:21:05 +08:00
commit 13bc6db529
378 changed files with 54527 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class IssueComment extends Model
{
use HasFactory;
protected $fillable = [
'issue_id',
'user_id',
'comment_text',
'is_internal',
];
protected $casts = [
'is_internal' => 'boolean',
];
public function issue(): BelongsTo
{
return $this->belongsTo(Issue::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}