+
    lLiL                         R t ^ RIHtHtHtHtHtHtHtH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt  ! R R]4      t ! R R]4      t ! R	 R
]4      tR# )ub   
Modèles SQLAlchemy pour le module PROJETS
Préfabrication béton - Gestion commerciale et devis
)	ColumnIntegerStringFloatDateTimeText
ForeignKeyBooleanJSON)relationship)datetime)Basec                     a  ] tR t^t o RtRt]! ]RRR7      t]! ]	! ^24      RRRR7      t
]! ]	! ^4      RR7      t]! ]	! ^4      RR	7      t]! ]	! ^4      R
R	7      t]! ]]! R4      RR7      t]! ]	! ^d4      RR7      t]! ]	! ^4      RR7      t]! ]	! ^d4      RR7      t]! ]	! ^4      RR7      t]! ]RR7      t]! ]	! ^
4      RR7      t]! ]	! ^d4      RR7      t]! ]RR7      t]! ]	! ^d4      RR7      t]! ]RR7      t]! ]RR7      t]! ]RR	7      t]! ]^ R	7      t]! ] RR	7      t!]! ]]"PF                  R	7      t$]! ]]"PF                  ]"PF                  R7      t%]! ]RR7      t&]! ]^R	7      t'R t(Rt)V t*R# )Projetu"   
Projet de préfabrication béton
projetsTprimary_keyindexF)uniquenullabler   r   z#4facfedefaulten_coursz
clients.id        r   onupdatec                <    R V P                    RV P                   R2# )z<Projet  - >)numero_affairenomselfs   &cC:\Users\petid\OneDrive\Desktop\Maestro\MAESTRO CLAUDE\MAESTRO\maestro-backend\app\models\projet.py__repr__Projet.__repr__6   s"    $--.c$((1==     N)+__name__
__module____qualname____firstlineno____doc____tablename__r   r   idr   r    r!   couleurstatutr   	client_idcontact_projet_nomcontact_projet_telcontact_chantier_nomcontact_chantier_telr   adresse_chantiercode_postal_chantierville_chantierr   date_reception_armatures
armaturierdate_livraison_chantierconsignes_chargementr   poids_totalnb_transportsr	   convoi_exceptionnelr   utcnowdate_creationdate_modificationdate_archivageactifr%   __static_attributes____classdictcell____classdict__s   @r$   r   r      s     M 
T	6BF2Jte4PN
u
-CVAY	2GF2J
3F w
< 84HIsd;r
T:!&+=!&*t< dU3!&*u=F3K%8N  &h>sd3J$X=!$6 ,K7A.M %8 8X__=Mx8??[Ht4N7A&E> >r'   r   c                     a  ] tR t^:t o RtRt]! ]RRR7      t]! ]]	! RRR7      RR	7      t
]! ]! ^24      RR	7      t]! ]^ R
7      t]! ]RR	7      t]! ]! ^d4      RR	7      t]! ]RR	7      t]! ]]P&                  R
7      tR tRtV tR# )Niveauz0
Niveau d'un projet (Fondation, RDC, R+1, etc.)
niveauxTr   
projets.idCASCADEondeleteFr   r   c                "    R V P                    R2# )z<Niveau r   )r!   r"   s   &r$   r%   Niveau.__repr__K   s    $((1%%r'   r(   N)r)   r*   r+   r,   r-   r.   r   r   r/   r   	projet_idr   r!   ordrer   r:   r;   r<   r   rA   rB   r%   rF   rG   rH   s   @r$   rK   rK   :   s      M	T	6Bw
<) LW\]I
e
,C7A&E%h>sd3J$X= 8X__=M& &r'   rK   c                   B  a  ] tR t^Ot o RtRt]! ]RRR7      t]! ]]	! RRR7      RRR	7      t
]! ]]	! R
RR7      RR7      t]! ]! ^24      RR7      t]! ]! ^d4      RR7      t]! ]^R7      t]! ]! ^4      RR7      t]! ]RR7      t]! ]RR7      t]! ]RR7      t]! ]RR7      t]! ]! ^24      RR7      t]! ]! ^4      RR7      t]! ]RR7      t]! ]RR7      t]! ]! ^d4      RR7      t]! ]RR7      t]! ]RR7      t]! ]RR7      t]! ]RR7      t ]! ]RR7      t!]! ]RR7      t"]! ]RR7      t#]! ]$RR7      t%]! ]$RR7      t&]! ]RR7      t']! ]RR7      t(]! ]RR7      t)]! ]RR7      t*]! ]RR7      t+]! ],]-P\                  R7      t/]! ],]-P\                  ]-P\                  R7      t0]! ]! ^4      RR7      t1]! ]RR7      t2]! ]RR7      t3]! ],RR7      t4]! ]RR7      t5]! ]RR7      t6]! ]RR7      t7]! ]RR7      t8]! ]! ^d4      RR7      t9]! ],RR7      t:R t;R t<Rt=V t>R# )Pieceu>   
Pièce béton préfabriquée (dalle, poutre, longrine, etc.)
piecesTr   rM   rN   rO   F)r   r   z
niveaux.idr   r   
horizontalr   XF1aucuner   
en_attentec                   V P                   V P                  ,          V P                  ,          R,          pWP                  ,           V n        V P                  V P
                  ,          V n        V P                  R,          V n        V P                  V P
                  ,          V n        V P                  V P
                  ,          V n
        V P                   ^8  d   V P                  ^8  d
   RV n        R# R# R# )zCalcule les volumes et poidsi@B g      @TN)longueurlargeur	epaisseurajustement_volumevolume_unitairequantitevolume_totalpoids_unitairer>   prix_unitaire_htprix_total_htr@   )r#   vol_geos   & r$   calculer_volumesPiece.calculer_volumes   s     ==4<</$..@IM&)?)?? 004==@ #22S8..> "22T]]B ==34<<##5'+D$ $6r'   c                <    R V P                    RV P                   R2# )z<Piece r   r   )	reference
type_piecer"   s   &r$   r%   Piece.__repr__   s!    (DOO+<A>>r'   )r@   r>   rd   rf   rc   ra   N)?r)   r*   r+   r,   r-   r.   r   r   r/   r   rS   	niveau_idr   rk   rl   rb   type_coulager   r_   r^   r]   r`   
type_betontype_armature	poids_cfar
   config_treillisbecquet_typebecquet_longueurr	   becquet_autoconfig_startconfig_insertsconfig_menuiserier@   re   r   r=   notesra   rc   rd   r>   rf   r   r   rA   rB   rC   statut_realisationplans_fabriquesetiquettes_editeesdate_fabrication_reelleheures_budgeteesheures_reellesheures_reelles_verrouilleevol_beton_reelaccelerateur_betonr<   rh   r%   rF   rG   rH   s   @r$   rV   rV   O   s     M 
T	6Bw
<) LW\dhiIw
<) LW\]IvbzE2Ise4Jgq)H &*l;L uu-IUU+Gee,H uc2r
E2J 6":x8Mut,ITD1O &+5Led3'51L$.LD40Ntd3 !%8 eS1 "$64$'E UC0O%-LE3/N,K5#.M 8X__=Mx8??[r
LAWe4O7$X=ed3ED1N!'!?ED1Nsd;$X=,$? ?r'   rV   N)r-   
sqlalchemyr   r   r   r   r   r   r   r	   r
   sqlalchemy.ormr   r   app.databaser   r   rK   rV   r(   r'   r$   <module>r      sF    a ` ` '  ,>T ,>^&T &*Y?D Y?r'   