<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class AUK extends Model
{
    use HasFactory, SoftDeletes;

    protected $table = 'auks';
    protected $fillable = [
        'project_id',
        'auk_name',
        'auk_path',
        'image_dir',
        'parent_id',
    ];

    public function childs()
    {
        return $this->hasMany('App\Models\AUK','parent_id','id');
    }
}

