U
    hV                     @   sJ   d dl Zd dlZd dlZd dlmZ d dlmZmZ G dd dej	Z	dS )    N)settings)
migrationsmodelsc                   @   st  e Zd ZdZdeejgZej	dde
jdddfde
jddd	fd
e
jejdddddfde
jddddfde
jddddfde
jdddfde
jdddfde
jddejjdejjdgd fd!e
jddd"d#fd$e
jd%d&d'd(d)d*d+gd,d-d.d/fd0e
jd1ejj
jjd2ejd3fgd4d5d$dgd6d7ej	d8de
jdddfde
jddd	fd
e
jejdddddfd9e
jd:ejjdejjdgd;fd<e
jd=ddfd>e
jdd?dfd@e
jdAejjdgd;fdBe
jdddCd#fdDe
jdedEdFfdGe
jdHejj
jjdIdJd3fdKe
jdLejj
jjdIdMd3fdNe
jdOejj
jjdPdQd3fgdRdSdTgd6d7ej	dUde
jdddfde
jddd	fd
e
jejdddddfdVe
jdWdXdYfdZe
jdWd[dYfd\e
jdWd]dYfd^e
jdd_dejjdejjdgd`fdae
jddbdejjdejjdgd`fdce
jddddejjdejjdgd`fdee
jddfdejjdgd`fdge
jddhddifdKe
jdjejj
jjdkdMd3fdNe
jdlejj
jjdmdQd3fgdndndogd6d7ej	dpde
jdddfde
jddd	fd
e
jejdddddfdqe
jdrdsdtdudvdwdxgddydzd{d|fd}e
jd~ddfde
jdddgddd.d/fde
jddfde
jddddifde
jdddejjdejjdgd`fde
jdddd#fde
jdeddFfde
jdddfdKe
jdejj
jjddMd3fde
jdddejj
jjdddfde
jdddejj
jjdddfgdddge
j dKdgdde
j d}dgdde
j dgdde
j dqgddgdd7ej!de
j dgdddej!de
j d!gdddej!de
j d$gdddej!de
j dKd>gdddej!de
j dNd>gdddej!de
j dBgdddej!de
j d9gdddej!de
j dKdNgdddej!de
j dggdddej"ddhdgZ#dS )	MigrationT)streams0001_initialJingleTemplate
created_atz&Timestamp when this record was created)auto_now_add	help_text
updated_atz,Timestamp when this record was last modified)auto_nowr   idFz!Unique identifier for this record)defaulteditabler   primary_key	serializenamez"Human-readable name for the jingled   )r   
max_lengthuniqueslugz&URL-friendly identifier for the jingledescriptionz-Description of the jingle content and context)blankr   
image_pathz0Path to the reference image file for this jinglei  )r   r   similarity_thresholdg?z5Similarity threshold for positive detection (0.0-1.0)g        g      ?)r   r   
validators	is_activez4Whether this jingle template is active for detection)db_indexr   r   category)ad_startzAdvertisement Start)ad_endzAdvertisement End)program_startzProgram Start)program_endzProgram End)
transition
Transition)brandingzChannel Branding)otherOtherr'   z'Category classification for this jingle2   )choicesr   r   r   
created_byz&User who uploaded this jingle templatejingle_templates)r   	on_deleterelated_nametozJingle TemplatezJingle Templates)verbose_nameverbose_name_pluralordering)r   fieldsoptionsJingleDetectionconfidence_scorez+Confidence level of the detection (0.0-1.0))r   r   
frame_pathz!Path to the extracted frame imagedetection_timez When the detection was processedframe_timestampz5Timestamp within the segment where detection occurredis_confirmedz2Whether this detection has been manually confirmedmetadataz2Additional detection metadata and analysis results)r   r   r   segmentz%HLS segment containing this detectionjingle_detectionszstreams.hlssegmentsessionz,Stream session where this detection occurredzstreams.streamsessiontemplatez Jingle template that was matched
detectionszjingles.jingletemplatezJingle DetectionzJingle Detectionsz-detection_timeDetectionStatisticstotal_detectionsr   z,Total number of detections for this template)r   r   confirmed_detectionsz'Number of manually confirmed detectionsfalse_positivesz.Number of identified false positive detectionsavg_confidencez+Average confidence score for all detections)r   r   nullr   min_confidencez!Minimum confidence score recordedmax_confidencez!Maximum confidence score recordeddetection_ratezNumber of detections per hourlast_detectionz&Timestamp of the most recent detection)r   r   rF   z#Stream session for these statisticsdetection_statisticsz$Jingle template for these statistics
statisticszDetection Statisticsz-last_detectionAdBreakstatus)activeActive)inactiveInactive)pendingPending)
processing
Processing)	completed	Completed)failedFailed)	cancelled	CancelledrS   zCurrent status of this record   )r*   r   r   r   r   channel_namez/Channel identifier for external API integrationregion)Netherlandsr`   )Francera   )Globalrb   rb   z#Geographic region for this ad break
start_timez$When the advertisement break started)r   end_timez"When the advertisement break endedduration_secondsz#Duration of the ad break in seconds   i  is_sent_to_apiz3Whether this ad break data was sent to external APIapi_responsez%Response data from external API callsnotesz4Additional notes or observations about this ad breakz'Stream session containing this ad break	ad_breaksend_detectionz5Jingle detection that marked the end of this ad breakad_breaks_endedzjingles.jingledetection)r   r   rF   r-   r.   r/   start_detectionz7Jingle detection that marked the start of this ad breakad_breaks_startedzAdvertisement BreakzAdvertisement Breaksz-start_timeZjingles_adb_session_644a34_idx)r3   r   Zjingles_adb_channel_a8cb4d_idxZjingles_adb_is_sent_b14f94_idxZjingles_adb_status_be1ce1_idx)r0   r1   r2   indexesjingletemplateZjingles_jin_slug_33d2ec_idx)
model_nameindexZjingles_jin_is_acti_568562_idxZjingles_jin_categor_7a9b01_idxZjingledetectionZjingles_jin_session_16f260_idxZjingles_jin_templat_1cb2b1_idxZjingles_jin_is_conf_d97304_idxZjingles_jin_confide_a60b7d_idxZdetectionstatisticsZjingles_det_session_8fd830_idxZjingles_det_last_de_1414d7_idx)r>   r?   )r   unique_togetherN)$__name__
__module____qualname__initialr   swappable_dependencyr   AUTH_USER_MODELdependenciesCreateModelr   DateTimeField	UUIDFielduuiduuid4	CharField	SlugField	TextField
FloatFielddjangocorer   MinValueValidatorMaxValueValidatorBooleanField
ForeignKeydbdeletionCASCADE	JSONFielddictPositiveIntegerFieldIndexAddIndexAlterUniqueTogether
operations r   r   I/var/www/html/StreamProcessor/src/apps/jingles/migrations/0001_initial.pyr   
   s  
				
fm  		




cj 
	


v}				



      )          r   )
django.core.validatorsr   django.db.models.deletionr~   django.confr   	django.dbr   r   r   r   r   r   r   <module>   s
   