a
    Nh                     @   s@   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)gettext_lazyc                   @   s   e Zd Ze ZejddZe Z	e
 Ze
 Ze
 Zej
dddZejdddZejdddZejddddZej
dddZejdddZejdddZdd Zd	S )
RegistroPaper   )
max_lengthT)blanknull
   )r   r   r   c                 C   s   | j  d| j dS )N - z papers)dataquantidade_paper_cheioself r   ,/var/www/sistema_ama/apps/paperpot/models.py__str__   s    zRegistroPaper.__str__N)__name__
__module____qualname__r   	DateFieldr   	CharFieldZmesPositiveSmallIntegerFieldZsemanaPositiveIntegerFieldr   Zquantidade_papel_utilizadoZsubstrato_baldeZsubstrato_litros
FloatFieldZproducao_por_litroZproducao_por_horaZhoras_trabalhadasZquantidade_paradasZbasocote_kg	TextField
observacaor   r   r   r   r   r      s   r   c                   @   s6   e Zd ZejeejddZe Z	e Z
dd ZdS )HorarioParadaZhorarios)	on_deleterelated_namec                 C   s   | j  d| j S )Nr
   )hora_iniciohora_paradar   r   r   r   r   "   s    zHorarioParada.__str__N)r   r   r   r   
ForeignKeyr   CASCADEZregistro	TimeFieldr   r    r   r   r   r   r   r      s   r   N)	django.dbr   django.utils.translationr   _Modelr   r   r   r   r   r   <module>   s   