class Meta: db_table = 'records' indexes = [ models.Index(fields=[ '_id', ]), ] constraints = [ models.UniqueConstraint(fields=['tid', 'pubdate'], name='unique_tid_pubdate'), ]
class Meta: db_table = 'tags' indexes = [ models.Index(fields=[ '_id', ]), ] constraints = [ models.UniqueConstraint(fields=[ 'name', ], name='unique_name'), ]
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'), ]
class Meta: db_table = 'video_tag' indexes = [ models.Index(fields=[ '_id', ]), ] constraints = [ models.UniqueConstraint(fields=[ 'tid', 'pubdate', 'tag_id', ], name='unique_tid_pubdate_tagid') ]
class Meta: db_table = 'videos' indexes = [ models.Index(fields=[ 'tid', 'pubdate', ]), models.Index(fields=[ '_id', ]), ] constraints = [ models.UniqueConstraint(fields=[ 'aid', ], name='unique_aid'), ]