<?php

namespace App\Models;

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

class UmkmDetails extends Model
{
    use HasFactory;
    protected $table = 'umkm_details';
    public $timestamps = true;
    protected $fillable = [
        'user_id',
        'umkm_name',
        'foto',
        'establishment_date_umkm',
        'description_umkm',
        'product',
        'laporan_keuangan',
        'siup_number_umkm',
        'profit_umkm',
    ];

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