<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TaskTemplate extends Model
{
    protected $fillable = [
        'user_id',
        'name',
        'title',
        'description',
        'priority',
        'tags_ids'
    ];

    protected $casts = [
        'tags_ids' => 'array',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
