<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ArticleCategoryDetail extends Model
{
    protected $table = 'article_category_details';

    protected $fillable = ['id', 'article_id', 'article_category_id', 'created_at', 'updated_at'];

    public function articleCategory()
    {
        return $this->belongsTo(ArticleCategory::class, 'article_category_id', 'id');
    }

    public function article()
    {
        return $this->belongsTo(Article::class, 'article_id', 'id');
    }
}
