o
    mi                     @   s   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Z
G dd	 d	eZG d
d deZG dd deZdS )    )models)	BaseModel)ACTIVITY_STATUSES)User)Projectc                   @   sV   e Zd Zejeejd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 )		TimeSheet	on_deleteTnullFdefaultc                   @      e Zd ZdZdS )zTimeSheet.MetaZ
timesheetsN__name__
__module____qualname__db_table r   r   :/var/www/html/kuke-dev/django-kuke/apps/employee/models.pyMeta       r   N)r   r   r   r   
ForeignKeyr   CASCADEuserDateTimeFieldZclock_in_date_timeZclock_out_date_timeDurationFieldtotal_durationBooleanFieldZis_auto_clocked_outr   r   r   r   r   r      s    r   c                   @   s>   e Zd ZejddZejddZejddZG dd dZ	dS )	ActivityType   
max_lengthFr   Tc                   @   r   )zActivityType.MetaZactivity_typesNr   r   r   r   r   r      r   r   N)
r   r   r   r   	CharFieldnamer   Zis_location_required	is_activer   r   r   r   r   r      s
    r   c                   @   s   e Zd ZejeejdZejeejdZ	eje
ejdZe ZejddZejed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 )Activityr   Tr
      started)choicesr"   r   r   c                   @   r   )zActivity.MetaZ
activitiesNr   r   r   r   r   r   *   r   r   N)r   r   r   r   r   r   r   r   r   projectr   Zactivity_typer   Zstart_date_timeZend_date_timer#   r   status	TextFielddescriptionr   r   r   Zis_auto_closed
FloatFieldpay_per_hourr   r   r   r   r   r&      s    r&   c                   @   sP   e Zd ZejeddZejeej	dZ
ejddZejddZG dd dZdS )	ActivityLatLongr'   )r)   r"   r   r    r!   c                   @   r   )zActivityLatLong.MetaZactivity_lat_longsNr   r   r   r   r   r   4   r   r   N)r   r   r   r   r#   r   typer   r&   r   ZactivityZlatlongr   r   r   r   r   r0   .   s    r0   N)	django.dbr   common.base_modelsr   Zcommon.constantsr   Zapps.user.modelsr   apps.project.modelsr   r   r   r&   r0   r   r   r   r   <module>   s    	