a
    \]=h                     @   s   d dl mZ G dd dejZG dd dejZG dd dejZG dd	 d	ejZG d
d dejZG dd dejZG dd dejZ	dS )    )modelsc                   @   sv  e Zd ZejddZe ZejddddZ	ejddZ
ejddddZejddZejd	dddZejd
dddZejd
dddZejddddZejddddZejddddZejddddZejddddZejddddZejd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jddZejdddZejddZejdddZejdddZ G dd dZ!dS )UexistEntryTprimary_key   
max_lengthnullblankA   r   x         #   2   i  r	   r
   r   defaultimportr   	db_columnc                   @   sb   e Zd ZdZejg dddejddgddejdgd	dejg d
ddejg dddgZdS )zUexistEntry.MetaZuexist_entries)file_idimport_fieldrecycleimportedZindex_master_1fieldsnamer   r   Zindex_master_2emailZindex_master_3)matched_targetr   r   Zindex_master_4)r    r   r   updated_dateZindex_master_5N__name__
__module____qualname__db_tabler   Indexindexes r)   r)   J/var/www/html/hope-faith-dev/hope-faith/src/hope_faith_harvester/models.pyMeta   s   r+   N)"r#   r$   r%   r   BigAutoFieldentry_idIntegerFieldr   	CharField	firstnamelastnamer   phoneZstreetZcitystatecountryipZwebsitedateZnotesdescriptioninfoZlead_idstatus	TextFieldZ	old_notesr   r   r   r    DateTimeFieldr!   r+   r)   r)   r)   r*   r      s2   r   c                   @   sv   e Zd ZejddZe Ze Z	e Z
e ZejddZejddZejddZejddZG dd dZdS )UexistEntriesTargetsTr   r   r   c                   @   s`   e Zd ZdZejg dddejg dddejdgddejd	gd
dejd	dgddgZdS )zUexistEntriesTargets.MetaZuexist_entries_targets)	target_idworkerpriority	processedfailedZidx_first_indexr   )r   r=   r@   rA   Zidx_second_indexr=   Zidx_third_indexr@   Zidx_forth_indexZidx_fifth_indexNr"   r)   r)   r)   r*   r+   3   s   r+   N)r#   r$   r%   r   r,   Z	record_idr.   r   BigIntegerFieldr-   r=   r>   r@   matchedrA   r?   r+   r)   r)   r)   r*   r<   (   s   r<   c                   @   s   e Zd ZejddZejddZe Z	ej
ddZej
ddZej
ddZej
ddZej
ddZej
dddZej
ddZej
dddZG dd	 d	Zd
S )UexistFilesTr   r   r   r   r   r   c                   @   s   e Zd ZdZdS )zUexistFiles.MetaZuexist_filesNr#   r$   r%   r&   r)   r)   r)   r*   r+   K   s   r+   N)r#   r$   r%   r   	AutoFieldr   r/   filer;   r6   r.   readyloadedcleanedtotalr@   rA   r?   user_idr+   r)   r)   r)   r*   rD   >   s   rD   c                   @   sn   e Zd ZejddZejddZejddZejddZ	ej
ddZej
ddZejddZG d	d
 d
ZdS )UexistTargetsTr   r   r   r      r      c                   @   s   e Zd ZdZdS )zUexistTargets.MetaZuexist_targetsNrE   r)   r)   r)   r*   r+   X   s   r+   N)r#   r$   r%   r   rF   r=   r/   r   Ztarget_attributealiasr.   activeZdownloadableurlr+   r)   r)   r)   r*   rM   O   s   rM   c                   @   sL   e Zd ZejddZejddZejddZej	dddZ
G dd dZd	S )
UsersTr   r   r   i^  r   c                   @   s   e Zd ZdZdS )z
Users.MetausersNrE   r)   r)   r)   r*   r+   b   s   r+   N)r#   r$   r%   r   rF   rL   r/   userpasswordr.   private_onlyr+   r)   r)   r)   r*   rS   \   s
   rS   c                   @   sZ   e Zd ZejddZe Ze ZejddZ	ejddZ
ejddZG dd dZdS )UexistFilesTargetsTr   r   r   c                   @   s2   e Zd ZdZejddgddejdgddgZdS )zUexistFilesTargets.MetaZuexist_files_targetsr   r=   r   Nr"   r)   r)   r)   r*   r+   m   s   r+   N)r#   r$   r%   r   rF   Zlinkd_idr.   r   r=   r@   rA   r?   r+   r)   r)   r)   r*   rX   e   s   rX   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dZ
ejd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G dd dZdS )UexistEntriesMatchedTr   r   r   r   r   r   r   r   r   r   c                   @   s^   e Zd ZdZejdgddejddgddejdgddejd	gd
dejddgddgZdS )zUexistEntriesMatched.MetaZuexist_entries_matchedr   Zidx_file_idr   r    Zidx_file_matchedr   Z	idx_emailr2   Z	idx_phoner   Zidx_target_updatedNr"   r)   r)   r)   r*   r+      s   r+   N)r#   r$   r%   r   r,   r-   r.   r   r/   r0   r1   r   r2   r   r    r;   r!   r+   r)   r)   r)   r*   rY   t   s   rY   N)
	django.dbr   Modelr   r<   rD   rM   rS   rX   rY   r)   r)   r)   r*   <module>   s   %	