feat: infrastructure assets management with warranty tracking and EAN lookup integration

This commit is contained in:
jeremy bayse
2026-04-09 21:51:43 +02:00
parent 3544c77bd1
commit b28c56c94c
46 changed files with 2961 additions and 414 deletions

21
app/Models/Commune.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Commune extends Model
{
protected $fillable = ['nom', 'code_postal'];
public function commandes(): HasMany
{
return $this->hasMany(Commande::class);
}
public function contrats(): HasMany
{
return $this->hasMany(Contrat::class);
}
}