<?php

namespace App\Models;

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

class Entreprise extends Model
{
    use HasFactory;

    public $fillable = [
        'nom',
        'rcs',
        'siret',
        'cp',
        'type',
        'dirigeant',
        'telephone',
        'email',
        'adresse',
        'ville',
        'capital',
        'kbis',
        'bilan'
    ];

    public function propietaires()
    {
        return $this->hasMany(Proprietaire::class);
    }
}
