43 lines
937 B
PHP
43 lines
937 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SousTraitant extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'sous_traitants';
|
|
|
|
protected $fillable = [
|
|
'nom_entreprise',
|
|
'siret',
|
|
'forme_juridique',
|
|
'code_ape',
|
|
'adresse',
|
|
'contact_principal',
|
|
'telephone',
|
|
'email',
|
|
'site_web',
|
|
'numero_contrat',
|
|
'montant_contrat',
|
|
'date_debut_contrat',
|
|
'date_fin_contrat',
|
|
'type_prestation',
|
|
'conditions_paiement',
|
|
'statut',
|
|
'note_qualite',
|
|
'certifications_labels',
|
|
];
|
|
|
|
protected $casts = [
|
|
'montant_contrat' => 'decimal:2',
|
|
'date_debut_contrat' => 'date',
|
|
'date_fin_contrat' => 'date',
|
|
'note_qualite' => 'decimal:1',
|
|
'certifications_labels' => 'array',
|
|
];
|
|
}
|