<?php

namespace App\Models;

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

class KomunitasDetails extends Model
{
    use HasFactory;
    protected $table = 'komunitas_details';
    public $timestamps = true;

    protected $fillable = [
        'user_id',
        'community_name',
        'foto',
        'establishment_date_komunitas',
        'description_komunitas',
        'community_license',
    ];

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