codex ticket rework
This commit is contained in:
@@ -11,6 +11,8 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
#[Fillable([
|
||||
'acceptance_criteria',
|
||||
'assignee_user_id',
|
||||
'author_user_id',
|
||||
'board_column_id',
|
||||
'blocked_comment',
|
||||
'description',
|
||||
@@ -44,6 +46,16 @@ class Ticket extends Model
|
||||
return $this->belongsTo(BoardColumn::class);
|
||||
}
|
||||
|
||||
public function assignee(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'assignee_user_id');
|
||||
}
|
||||
|
||||
public function author(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class, 'author_user_id');
|
||||
}
|
||||
|
||||
public function childTickets(): HasMany
|
||||
{
|
||||
return $this->hasMany(Ticket::class, 'parent_ticket_id')
|
||||
|
||||
Reference in New Issue
Block a user