Beispiel #1
0
 class Meta:
     verbose_name = verbose_name_plural = 'TransactionBinanceETHUSDT'
     indexes = [
         models.Index(fields=['t'], name='timestamp'),
         models.Index(fields=['e', 'cu', 'f'], name='exch_curr_fiat')
     ]
     unique_together = ('e', 'cu', 'f', 't')
     ordering = ['-t']
Beispiel #2
0
 class Meta:
     ordering = ["-timestamp"]
     indexes = [
         models.Index(fields=[
             'location',
             'condition',
         ]),
         models.Index(fields=[
             '-timestamp',
             'location',
         ])
     ]
Beispiel #3
0
 class Meta:
     db_table = 'tasks'
     indexes = [
         models.Index(fields=[
             '_id',
         ]),
         models.Index(fields=[
             'time_start',
         ]),
     ]
     constraints = [
         models.UniqueConstraint(fields=['task_id'], name='unique_task_id'),
     ]
Beispiel #4
0
 class Meta:
     db_table = 'videos'
     indexes = [
         models.Index(fields=[
             'tid',
             'pubdate',
         ]),
         models.Index(fields=[
             '_id',
         ]),
     ]
     constraints = [
         models.UniqueConstraint(fields=[
             'aid',
         ], name='unique_aid'),
     ]
Beispiel #5
0
 class Meta:
     ordering = ["-timestamp"]
     indexes = [
         models.Index(fields=[
             '-timestamp',
             'radar_id',
         ]),
     ]
Beispiel #6
0
 class Meta:
     ordering = ["-date"]
     indexes = [
         models.Index(fields=[
             '-date',
             'location',
         ]),
     ]
Beispiel #7
0
 class Meta:
     db_table = 'records'
     indexes = [
         models.Index(fields=[
             '_id',
         ]),
     ]
     constraints = [
         models.UniqueConstraint(fields=['tid', 'pubdate'],
                                 name='unique_tid_pubdate'),
     ]
Beispiel #8
0
 class Meta:
     ordering = ["-timestamp"]
     indexes = [
         models.Index(fields=[
             'location',
             'event_type',
             'event_class',
             '-timestamp',
         ]),
         models.Index(
             fields=['-timestamp', 'event_type', 'event_class', 'location'
                     ]),
         models.Index(fields=['-timestamp', 'event_type', 'location']),
         models.Index(fields=['-timestamp', 'event_class', 'location']),
         models.Index(fields=[
             '-timestamp',
             'event_type',
             '-velocity',
         ]),
     ]
Beispiel #9
0
 class Meta:
     db_table = 'tags'
     indexes = [
         models.Index(fields=[
             '_id',
         ]),
     ]
     constraints = [
         models.UniqueConstraint(fields=[
             'name',
         ], name='unique_name'),
     ]
Beispiel #10
0
 class Meta:
     db_table = 'video_tag'
     indexes = [
         models.Index(fields=[
             '_id',
         ]),
     ]
     constraints = [
         models.UniqueConstraint(fields=[
             'tid',
             'pubdate',
             'tag_id',
         ],
                                 name='unique_tid_pubdate_tagid')
     ]
Beispiel #11
0
 class Meta:
     ordering = ['match', '-started', 'final']
     indexes = [
         models.Index(name='last_modified',
                      fields=['-updated', 'timestamp']),
     ]
 class Meta:
     indexes = (
         models.Index(fields=('czar', )),
         models.Index(fields=('score', )),
     )
 class Meta:
     unique_together = ('text', 'genre')
     indexes = (models.Index(fields=('pick',)), )