o
    i	                     @   sd   d dl mZ d dl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)Empresa)Contacto)Usuario)EstadoOportunidadVentac                   @   s   e Zd Zej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Zejeej
d	ddZejeej
d
ddZejdddddZe ZejddZe Ze ZejdddZejdejddddZG dd dZdd ZdS )OportunidadDeVentaTprimary_key   )
max_length
empresa_idoportunidades)	on_delete	db_columnrelated_namecontacto_idusuario_responsable_idestado_oportunidad_id      )
max_digitsdecimal_placesnullblankd   r   r   ColumnWorkflowcolumn_workflow_id)r   r   r   r   c                   @      e Zd ZdZdZdS )zOportunidadDeVenta.Metaoportunidad_de_ventaFN__name__
__module____qualname__db_tablemanaged r&   r&   >/var/www/html/crm_dreinet/Models/oportunidad_de_venta_model.pyMeta%       r(   c                 C   s   | j S )N)nombreselfr&   r&   r'   __str__)   s   zOportunidadDeVenta.__str__N)r!   r"   r#   r   	AutoFieldid	CharFieldr*   
ForeignKeyr   CASCADEempresar   contactor   usuario_responsabler   estado_oportunidadDecimalFieldvalor_estimado	DateFieldfecha_estimada_cierreorigenDateTimeFieldfecha_creacionfecha_ultima_actualizacion
deleted_atSET_NULLcolumn_workflowr(   r-   r&   r&   r&   r'   r      s4    



r   c                   @   s~   e Zd ZejddZe 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ejdddZG dd dZdd	 Zd
S )r   Tr   i  )r   r   r   r   c                   @   r   )zColumnWorkflow.MetarA   FNr    r&   r&   r&   r'   r(   6   r)   r(   c                 C   s   | j pd| j S )NzColumna )r*   r/   r+   r&   r&   r'   r-   :   s   zColumnWorkflow.__str__N)r!   r"   r#   r   r.   r/   IntegerFieldworkflow_idr0   r*   ordenr<   
created_at
updated_atr?   r(   r-   r&   r&   r&   r'   r   -   s    r   N)	django.dbr   Models.Empresar   Models.contacto_modelr   api_login.modelsr   Models.estado_oportunidad_ventar   Modelr   r   r&   r&   r&   r'   <module>   s    &