a
    ;Xh                     @   sh   d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
 G dd dejZG dd	 d	ejZd
S )    )models)	SemeaduraCadastroLote)User)Funcionario)timezonec                   @   s   e Zd ZejeejdddZejeejdddZ	ej
dddZejdddZejd	d
ZejeejdddZejeejddddZe ZdS )RepiqueTZrepiques)	on_deletenullrelated_nameZrepiques_cadastro_loter
   blank
      )
max_digitsdecimal_placesFdefaultr	   r
   r   Zrepiques_funcionario)r	   r
   r   r   N)__name__
__module____qualname__r   
ForeignKeyr   CASCADE	semeadurar   Zcadastro_lote	DateFieldZdata_repiqueDecimalFieldZquantidade_repicadaBooleanFieldZ
finalizador   SET_NULLregistrado_porr   funcionarioManagerobjects r#   r#   7/var/www/viveiro_mudafortebrasil/apps/repique/models.pyr      s   r   c                   @   s   e Zd ZejeejddZejddddZ	ej
dddZej
ejdZejejdZejeejdddZejddddZejddddZejdddZe Zd	S )
LogFinalizacaoRepiqueT)r	   r
   2   )
max_lengthr
   r   r   r   r      N)r   r   r   r   r   r   r   r   	CharFieldnumero_loter   	data_loter   nowdata_exclusao	TimeFieldhora_exclusaor   r   usuario_exclusaonome_usuario_exclusaomotivo_exclusao	TextFieldmotivo_exclusao_outrosr!   r"   r#   r#   r#   r$   r%      s   r%   N)	django.dbr   Zapps.lotes.modelsr   r   django.contrib.auth.modelsr   Zapps.funcionario.modelsr   django.utilsr   Modelr   r%   r#   r#   r#   r$   <module>   s   