forked from 0x2620/pandora
723 lines
41 KiB
Python
723 lines
41 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
from south.db import db
|
||
|
from django.db import models
|
||
|
from oxdb.backend.models import *
|
||
|
|
||
|
class Migration:
|
||
|
|
||
|
def forwards(self, orm):
|
||
|
|
||
|
# Adding model 'Trivia'
|
||
|
db.create_table('backend_trivia', (
|
||
|
('id', orm['backend.Trivia:id']),
|
||
|
('trivia', orm['backend.Trivia:trivia']),
|
||
|
('movie', orm['backend.Trivia:movie']),
|
||
|
('position', orm['backend.Trivia:position']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Trivia'])
|
||
|
|
||
|
# Adding model 'AlternativeTitle'
|
||
|
db.create_table('backend_alternativetitle', (
|
||
|
('id', orm['backend.AlternativeTitle:id']),
|
||
|
('movie', orm['backend.AlternativeTitle:movie']),
|
||
|
('title', orm['backend.AlternativeTitle:title']),
|
||
|
('type', orm['backend.AlternativeTitle:type']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['AlternativeTitle'])
|
||
|
|
||
|
# Adding model 'MovieLanguage'
|
||
|
db.create_table('backend_movielanguage', (
|
||
|
('id', orm['backend.MovieLanguage:id']),
|
||
|
('movie', orm['backend.MovieLanguage:movie']),
|
||
|
('language', orm['backend.MovieLanguage:language']),
|
||
|
('position', orm['backend.MovieLanguage:position']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['MovieLanguage'])
|
||
|
|
||
|
# Adding model 'Movie'
|
||
|
db.create_table('backend_movie', (
|
||
|
('id', orm['backend.Movie:id']),
|
||
|
('created', orm['backend.Movie:created']),
|
||
|
('modified', orm['backend.Movie:modified']),
|
||
|
('accessed', orm['backend.Movie:accessed']),
|
||
|
('movieId', orm['backend.Movie:movieId']),
|
||
|
('imdbId', orm['backend.Movie:imdbId']),
|
||
|
('oxdbId', orm['backend.Movie:oxdbId']),
|
||
|
('title', orm['backend.Movie:title']),
|
||
|
('year', orm['backend.Movie:year']),
|
||
|
('runtime', orm['backend.Movie:runtime']),
|
||
|
('release_date', orm['backend.Movie:release_date']),
|
||
|
('tagline', orm['backend.Movie:tagline']),
|
||
|
('plot', orm['backend.Movie:plot']),
|
||
|
('plot_outline', orm['backend.Movie:plot_outline']),
|
||
|
('rating', orm['backend.Movie:rating']),
|
||
|
('votes', orm['backend.Movie:votes']),
|
||
|
('budget', orm['backend.Movie:budget']),
|
||
|
('gross', orm['backend.Movie:gross']),
|
||
|
('profit', orm['backend.Movie:profit']),
|
||
|
('files_modified', orm['backend.Movie:files_modified']),
|
||
|
('filename', orm['backend.Movie:filename']),
|
||
|
('extracted', orm['backend.Movie:extracted']),
|
||
|
('duration', orm['backend.Movie:duration']),
|
||
|
('rights_level', orm['backend.Movie:rights_level']),
|
||
|
('tpb_id', orm['backend.Movie:tpb_id']),
|
||
|
('kg_id', orm['backend.Movie:kg_id']),
|
||
|
('open_subtitle_id', orm['backend.Movie:open_subtitle_id']),
|
||
|
('wikipedia_url', orm['backend.Movie:wikipedia_url']),
|
||
|
('series_imdb', orm['backend.Movie:series_imdb']),
|
||
|
('series_title', orm['backend.Movie:series_title']),
|
||
|
('episode_title', orm['backend.Movie:episode_title']),
|
||
|
('season', orm['backend.Movie:season']),
|
||
|
('episode', orm['backend.Movie:episode']),
|
||
|
('still_pos', orm['backend.Movie:still_pos']),
|
||
|
('poster', orm['backend.Movie:poster']),
|
||
|
('posters_disabled', orm['backend.Movie:posters_disabled']),
|
||
|
('posters_available', orm['backend.Movie:posters_available']),
|
||
|
('poster_height', orm['backend.Movie:poster_height']),
|
||
|
('poster_width', orm['backend.Movie:poster_width']),
|
||
|
('scene_height', orm['backend.Movie:scene_height']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Movie'])
|
||
|
|
||
|
# Adding model 'Archive'
|
||
|
db.create_table('backend_archive', (
|
||
|
('id', orm['backend.Archive:id']),
|
||
|
('created', orm['backend.Archive:created']),
|
||
|
('modified', orm['backend.Archive:modified']),
|
||
|
('name', orm['backend.Archive:name']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Archive'])
|
||
|
|
||
|
# Adding model 'ArchiveFile'
|
||
|
db.create_table('backend_archivefile', (
|
||
|
('id', orm['backend.ArchiveFile:id']),
|
||
|
('created', orm['backend.ArchiveFile:created']),
|
||
|
('modified', orm['backend.ArchiveFile:modified']),
|
||
|
('archive', orm['backend.ArchiveFile:archive']),
|
||
|
('movie_file', orm['backend.ArchiveFile:movie_file']),
|
||
|
('path', orm['backend.ArchiveFile:path']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['ArchiveFile'])
|
||
|
|
||
|
# Adding model 'Language'
|
||
|
db.create_table('backend_language', (
|
||
|
('id', orm['backend.Language:id']),
|
||
|
('name', orm['backend.Language:name']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Language'])
|
||
|
|
||
|
# Adding model 'ReviewWhitelist'
|
||
|
db.create_table('backend_reviewwhitelist', (
|
||
|
('id', orm['backend.ReviewWhitelist:id']),
|
||
|
('name', orm['backend.ReviewWhitelist:name']),
|
||
|
('url', orm['backend.ReviewWhitelist:url']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['ReviewWhitelist'])
|
||
|
|
||
|
# Adding model 'MovieSort'
|
||
|
db.create_table('backend_moviesort', (
|
||
|
('id', orm['backend.MovieSort:id']),
|
||
|
('movie', orm['backend.MovieSort:movie']),
|
||
|
('title', orm['backend.MovieSort:title']),
|
||
|
('director', orm['backend.MovieSort:director']),
|
||
|
('country', orm['backend.MovieSort:country']),
|
||
|
('year', orm['backend.MovieSort:year']),
|
||
|
('producer', orm['backend.MovieSort:producer']),
|
||
|
('writer', orm['backend.MovieSort:writer']),
|
||
|
('editor', orm['backend.MovieSort:editor']),
|
||
|
('cinematographer', orm['backend.MovieSort:cinematographer']),
|
||
|
('language', orm['backend.MovieSort:language']),
|
||
|
('runtime', orm['backend.MovieSort:runtime']),
|
||
|
('keywords', orm['backend.MovieSort:keywords']),
|
||
|
('genre', orm['backend.MovieSort:genre']),
|
||
|
('cast', orm['backend.MovieSort:cast']),
|
||
|
('summary', orm['backend.MovieSort:summary']),
|
||
|
('trivia', orm['backend.MovieSort:trivia']),
|
||
|
('connections', orm['backend.MovieSort:connections']),
|
||
|
('scenes', orm['backend.MovieSort:scenes']),
|
||
|
('words', orm['backend.MovieSort:words']),
|
||
|
('wpm', orm['backend.MovieSort:wpm']),
|
||
|
('risk', orm['backend.MovieSort:risk']),
|
||
|
('movieId', orm['backend.MovieSort:movieId']),
|
||
|
('duration', orm['backend.MovieSort:duration']),
|
||
|
('resolution', orm['backend.MovieSort:resolution']),
|
||
|
('aspectratio', orm['backend.MovieSort:aspectratio']),
|
||
|
('bitrate', orm['backend.MovieSort:bitrate']),
|
||
|
('pixels', orm['backend.MovieSort:pixels']),
|
||
|
('filename', orm['backend.MovieSort:filename']),
|
||
|
('files', orm['backend.MovieSort:files']),
|
||
|
('size', orm['backend.MovieSort:size']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['MovieSort'])
|
||
|
|
||
|
# Adding model 'File'
|
||
|
db.create_table('backend_file', (
|
||
|
('id', orm['backend.File:id']),
|
||
|
('created', orm['backend.File:created']),
|
||
|
('modified', orm['backend.File:modified']),
|
||
|
('oshash', orm['backend.File:oshash']),
|
||
|
('sha1', orm['backend.File:sha1']),
|
||
|
('md5', orm['backend.File:md5']),
|
||
|
('movie', orm['backend.File:movie']),
|
||
|
('computed_path', orm['backend.File:computed_path']),
|
||
|
('size', orm['backend.File:size']),
|
||
|
('duration', orm['backend.File:duration']),
|
||
|
('video_codec', orm['backend.File:video_codec']),
|
||
|
('pixel_format', orm['backend.File:pixel_format']),
|
||
|
('width', orm['backend.File:width']),
|
||
|
('height', orm['backend.File:height']),
|
||
|
('pixel_aspect_ratio', orm['backend.File:pixel_aspect_ratio']),
|
||
|
('display_aspect_ratio', orm['backend.File:display_aspect_ratio']),
|
||
|
('framerate', orm['backend.File:framerate']),
|
||
|
('audio_codec', orm['backend.File:audio_codec']),
|
||
|
('samplerate', orm['backend.File:samplerate']),
|
||
|
('channels', orm['backend.File:channels']),
|
||
|
('bpp', orm['backend.File:bpp']),
|
||
|
('pixels', orm['backend.File:pixels']),
|
||
|
('part', orm['backend.File:part']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['File'])
|
||
|
|
||
|
# Adding model 'Country'
|
||
|
db.create_table('backend_country', (
|
||
|
('id', orm['backend.Country:id']),
|
||
|
('name', orm['backend.Country:name']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Country'])
|
||
|
|
||
|
# Adding model 'Genre'
|
||
|
db.create_table('backend_genre', (
|
||
|
('id', orm['backend.Genre:id']),
|
||
|
('name', orm['backend.Genre:name']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Genre'])
|
||
|
|
||
|
# Adding model 'MovieCountry'
|
||
|
db.create_table('backend_moviecountry', (
|
||
|
('id', orm['backend.MovieCountry:id']),
|
||
|
('movie', orm['backend.MovieCountry:movie']),
|
||
|
('country', orm['backend.MovieCountry:country']),
|
||
|
('position', orm['backend.MovieCountry:position']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['MovieCountry'])
|
||
|
|
||
|
# Adding model 'Review'
|
||
|
db.create_table('backend_review', (
|
||
|
('id', orm['backend.Review:id']),
|
||
|
('movie', orm['backend.Review:movie']),
|
||
|
('title', orm['backend.Review:title']),
|
||
|
('url', orm['backend.Review:url']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Review'])
|
||
|
|
||
|
# Adding model 'Subtitle'
|
||
|
db.create_table('backend_subtitle', (
|
||
|
('id', orm['backend.Subtitle:id']),
|
||
|
('created', orm['backend.Subtitle:created']),
|
||
|
('modified', orm['backend.Subtitle:modified']),
|
||
|
('user', orm['backend.Subtitle:user']),
|
||
|
('movie_file', orm['backend.Subtitle:movie_file']),
|
||
|
('language', orm['backend.Subtitle:language']),
|
||
|
('srt', orm['backend.Subtitle:srt']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Subtitle'])
|
||
|
|
||
|
# Adding model 'Cast'
|
||
|
db.create_table('backend_cast', (
|
||
|
('id', orm['backend.Cast:id']),
|
||
|
('movie', orm['backend.Cast:movie']),
|
||
|
('person', orm['backend.Cast:person']),
|
||
|
('role', orm['backend.Cast:role']),
|
||
|
('character', orm['backend.Cast:character']),
|
||
|
('position', orm['backend.Cast:position']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Cast'])
|
||
|
|
||
|
# Adding model 'Person'
|
||
|
db.create_table('backend_person', (
|
||
|
('id', orm['backend.Person:id']),
|
||
|
('name', orm['backend.Person:name']),
|
||
|
('imdbId', orm['backend.Person:imdbId']),
|
||
|
('name_sort', orm['backend.Person:name_sort']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Person'])
|
||
|
|
||
|
# Adding model 'Keyword'
|
||
|
db.create_table('backend_keyword', (
|
||
|
('id', orm['backend.Keyword:id']),
|
||
|
('name', orm['backend.Keyword:name']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Keyword'])
|
||
|
|
||
|
# Adding model 'List'
|
||
|
db.create_table('backend_list', (
|
||
|
('id', orm['backend.List:id']),
|
||
|
('created', orm['backend.List:created']),
|
||
|
('modified', orm['backend.List:modified']),
|
||
|
('user', orm['backend.List:user']),
|
||
|
('name', orm['backend.List:name']),
|
||
|
('public', orm['backend.List:public']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['List'])
|
||
|
|
||
|
# Adding model 'Connection'
|
||
|
db.create_table('backend_connection', (
|
||
|
('id', orm['backend.Connection:id']),
|
||
|
('subject', orm['backend.Connection:subject']),
|
||
|
('relation', orm['backend.Connection:relation']),
|
||
|
('object', orm['backend.Connection:object']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Connection'])
|
||
|
|
||
|
# Adding model 'Location'
|
||
|
db.create_table('backend_location', (
|
||
|
('id', orm['backend.Location:id']),
|
||
|
('name', orm['backend.Location:name']),
|
||
|
('lat_sw', orm['backend.Location:lat_sw']),
|
||
|
('lng_sw', orm['backend.Location:lng_sw']),
|
||
|
('lat_ne', orm['backend.Location:lat_ne']),
|
||
|
('lng_ne', orm['backend.Location:lng_ne']),
|
||
|
('lat_center', orm['backend.Location:lat_center']),
|
||
|
('lng_center', orm['backend.Location:lng_center']),
|
||
|
('area', orm['backend.Location:area']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['Location'])
|
||
|
|
||
|
# Adding model 'MovieFind'
|
||
|
db.create_table('backend_moviefind', (
|
||
|
('id', orm['backend.MovieFind:id']),
|
||
|
('movie', orm['backend.MovieFind:movie']),
|
||
|
('all', orm['backend.MovieFind:all']),
|
||
|
('title', orm['backend.MovieFind:title']),
|
||
|
('director', orm['backend.MovieFind:director']),
|
||
|
('country', orm['backend.MovieFind:country']),
|
||
|
('year', orm['backend.MovieFind:year']),
|
||
|
('language', orm['backend.MovieFind:language']),
|
||
|
('writer', orm['backend.MovieFind:writer']),
|
||
|
('producer', orm['backend.MovieFind:producer']),
|
||
|
('editor', orm['backend.MovieFind:editor']),
|
||
|
('cinematographer', orm['backend.MovieFind:cinematographer']),
|
||
|
('cast', orm['backend.MovieFind:cast']),
|
||
|
('genre', orm['backend.MovieFind:genre']),
|
||
|
('keywords', orm['backend.MovieFind:keywords']),
|
||
|
('summary', orm['backend.MovieFind:summary']),
|
||
|
('trivia', orm['backend.MovieFind:trivia']),
|
||
|
('locations', orm['backend.MovieFind:locations']),
|
||
|
('filename', orm['backend.MovieFind:filename']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['MovieFind'])
|
||
|
|
||
|
# Adding model 'ListItem'
|
||
|
db.create_table('backend_listitem', (
|
||
|
('id', orm['backend.ListItem:id']),
|
||
|
('created', orm['backend.ListItem:created']),
|
||
|
('modified', orm['backend.ListItem:modified']),
|
||
|
('list', orm['backend.ListItem:list']),
|
||
|
('movie', orm['backend.ListItem:movie']),
|
||
|
))
|
||
|
db.send_create_signal('backend', ['ListItem'])
|
||
|
|
||
|
# Adding ManyToManyField 'Location.movies'
|
||
|
db.create_table('backend_location_movies', (
|
||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||
|
('location', models.ForeignKey(orm.Location, null=False)),
|
||
|
('movie', models.ForeignKey(orm.Movie, null=False))
|
||
|
))
|
||
|
|
||
|
# Adding ManyToManyField 'Archive.users'
|
||
|
db.create_table('backend_archive_users', (
|
||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||
|
('archive', models.ForeignKey(orm.Archive, null=False)),
|
||
|
('user', models.ForeignKey(orm['auth.User'], null=False))
|
||
|
))
|
||
|
|
||
|
# Adding ManyToManyField 'Keyword.movies'
|
||
|
db.create_table('backend_keyword_movies', (
|
||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||
|
('keyword', models.ForeignKey(orm.Keyword, null=False)),
|
||
|
('movie', models.ForeignKey(orm.Movie, null=False))
|
||
|
))
|
||
|
|
||
|
# Adding ManyToManyField 'Genre.movies'
|
||
|
db.create_table('backend_genre_movies', (
|
||
|
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
|
||
|
('genre', models.ForeignKey(orm.Genre, null=False)),
|
||
|
('movie', models.ForeignKey(orm.Movie, null=False))
|
||
|
))
|
||
|
|
||
|
|
||
|
|
||
|
def backwards(self, orm):
|
||
|
|
||
|
# Deleting model 'Trivia'
|
||
|
db.delete_table('backend_trivia')
|
||
|
|
||
|
# Deleting model 'AlternativeTitle'
|
||
|
db.delete_table('backend_alternativetitle')
|
||
|
|
||
|
# Deleting model 'MovieLanguage'
|
||
|
db.delete_table('backend_movielanguage')
|
||
|
|
||
|
# Deleting model 'Movie'
|
||
|
db.delete_table('backend_movie')
|
||
|
|
||
|
# Deleting model 'Archive'
|
||
|
db.delete_table('backend_archive')
|
||
|
|
||
|
# Deleting model 'ArchiveFile'
|
||
|
db.delete_table('backend_archivefile')
|
||
|
|
||
|
# Deleting model 'Language'
|
||
|
db.delete_table('backend_language')
|
||
|
|
||
|
# Deleting model 'ReviewWhitelist'
|
||
|
db.delete_table('backend_reviewwhitelist')
|
||
|
|
||
|
# Deleting model 'MovieSort'
|
||
|
db.delete_table('backend_moviesort')
|
||
|
|
||
|
# Deleting model 'File'
|
||
|
db.delete_table('backend_file')
|
||
|
|
||
|
# Deleting model 'Country'
|
||
|
db.delete_table('backend_country')
|
||
|
|
||
|
# Deleting model 'Genre'
|
||
|
db.delete_table('backend_genre')
|
||
|
|
||
|
# Deleting model 'MovieCountry'
|
||
|
db.delete_table('backend_moviecountry')
|
||
|
|
||
|
# Deleting model 'Review'
|
||
|
db.delete_table('backend_review')
|
||
|
|
||
|
# Deleting model 'Subtitle'
|
||
|
db.delete_table('backend_subtitle')
|
||
|
|
||
|
# Deleting model 'Cast'
|
||
|
db.delete_table('backend_cast')
|
||
|
|
||
|
# Deleting model 'Person'
|
||
|
db.delete_table('backend_person')
|
||
|
|
||
|
# Deleting model 'Keyword'
|
||
|
db.delete_table('backend_keyword')
|
||
|
|
||
|
# Deleting model 'List'
|
||
|
db.delete_table('backend_list')
|
||
|
|
||
|
# Deleting model 'Connection'
|
||
|
db.delete_table('backend_connection')
|
||
|
|
||
|
# Deleting model 'Location'
|
||
|
db.delete_table('backend_location')
|
||
|
|
||
|
# Deleting model 'MovieFind'
|
||
|
db.delete_table('backend_moviefind')
|
||
|
|
||
|
# Deleting model 'ListItem'
|
||
|
db.delete_table('backend_listitem')
|
||
|
|
||
|
# Dropping ManyToManyField 'Location.movies'
|
||
|
db.delete_table('backend_location_movies')
|
||
|
|
||
|
# Dropping ManyToManyField 'Archive.users'
|
||
|
db.delete_table('backend_archive_users')
|
||
|
|
||
|
# Dropping ManyToManyField 'Keyword.movies'
|
||
|
db.delete_table('backend_keyword_movies')
|
||
|
|
||
|
# Dropping ManyToManyField 'Genre.movies'
|
||
|
db.delete_table('backend_genre_movies')
|
||
|
|
||
|
|
||
|
|
||
|
models = {
|
||
|
'auth.group': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
|
||
|
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
|
||
|
},
|
||
|
'auth.permission': {
|
||
|
'Meta': {'unique_together': "(('content_type', 'codename'),)"},
|
||
|
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
||
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
|
||
|
},
|
||
|
'auth.user': {
|
||
|
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
||
|
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
|
||
|
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
|
||
|
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
|
||
|
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
||
|
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
||
|
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
|
||
|
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
|
||
|
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
|
||
|
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
|
||
|
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
|
||
|
},
|
||
|
'backend.alternativetitle': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'alternative_titles'", 'to': "orm['backend.Movie']"}),
|
||
|
'title': ('django.db.models.fields.TextField', [], {}),
|
||
|
'type': ('django.db.models.fields.CharField', [], {'max_length': '1000'})
|
||
|
},
|
||
|
'backend.archive': {
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
|
||
|
'users': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.User']"})
|
||
|
},
|
||
|
'backend.archivefile': {
|
||
|
'archive': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Archive']"}),
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movie_file': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.File']"}),
|
||
|
'path': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'})
|
||
|
},
|
||
|
'backend.cast': {
|
||
|
'character': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Movie']"}),
|
||
|
'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Person']"}),
|
||
|
'position': ('django.db.models.fields.IntegerField', [], {}),
|
||
|
'role': ('django.db.models.fields.CharField', [], {'max_length': '200'})
|
||
|
},
|
||
|
'backend.connection': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'object': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Movie']"}),
|
||
|
'relation': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
|
||
|
'subject': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'connections'", 'to': "orm['backend.Movie']"})
|
||
|
},
|
||
|
'backend.country': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
|
||
|
},
|
||
|
'backend.file': {
|
||
|
'audio_codec': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'bpp': ('django.db.models.fields.FloatField', [], {'default': '-1'}),
|
||
|
'channels': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'computed_path': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'display_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'duration': ('django.db.models.fields.FloatField', [], {'default': '-1'}),
|
||
|
'framerate': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'height': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'md5': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '32', 'blank': 'True'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'files'", 'to': "orm['backend.Movie']"}),
|
||
|
'oshash': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '16', 'blank': 'True'}),
|
||
|
'part': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||
|
'pixel_aspect_ratio': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'pixel_format': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'pixels': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
|
||
|
'samplerate': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'sha1': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'blank': 'True'}),
|
||
|
'size': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'video_codec': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
|
||
|
'width': ('django.db.models.fields.IntegerField', [], {'default': '-1'})
|
||
|
},
|
||
|
'backend.genre': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
|
||
|
},
|
||
|
'backend.keyword': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
|
||
|
},
|
||
|
'backend.language': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
|
||
|
},
|
||
|
'backend.list': {
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
|
||
|
'public': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
|
||
|
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
|
||
|
},
|
||
|
'backend.listitem': {
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'list': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.List']"}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Movie']"})
|
||
|
},
|
||
|
'backend.location': {
|
||
|
'area': ('django.db.models.fields.FloatField', [], {'default': '-1'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'lat_center': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'lat_ne': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'lat_sw': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'lng_center': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'lng_ne': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'lng_sw': ('django.db.models.fields.FloatField', [], {'default': '0'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'})
|
||
|
},
|
||
|
'backend.movie': {
|
||
|
'accessed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'budget': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'duration': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'episode': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'episode_title': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
|
||
|
'extracted': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'filename': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'files_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'gross': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'imdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '7', 'blank': 'True'}),
|
||
|
'kg_id': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movieId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128', 'blank': 'True'}),
|
||
|
'open_subtitle_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'oxdbId': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '42', 'blank': 'True'}),
|
||
|
'plot': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'plot_outline': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'poster': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'poster_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'poster_width': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'posters_available': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'posters_disabled': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'profit': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'rating': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'release_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'rights_level': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'runtime': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'scene_height': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'season': ('django.db.models.fields.IntegerField', [], {'default': '-1'}),
|
||
|
'series_imdb': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '7'}),
|
||
|
'series_title': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
|
||
|
'still_pos': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'tagline': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
|
||
|
'tpb_id': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
|
||
|
'votes': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'wikipedia_url': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'year': ('django.db.models.fields.CharField', [], {'max_length': '4'})
|
||
|
},
|
||
|
'backend.moviecountry': {
|
||
|
'country': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Country']"}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Movie']"}),
|
||
|
'position': ('django.db.models.fields.IntegerField', [], {})
|
||
|
},
|
||
|
'backend.moviefind': {
|
||
|
'all': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'cast': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'cinematographer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'country': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'director': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'editor': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'filename': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'genre': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'keywords': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'language': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'locations': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'find'", 'unique': 'True', 'to': "orm['backend.Movie']"}),
|
||
|
'producer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'summary': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
|
||
|
'trivia': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'writer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'year': ('django.db.models.fields.CharField', [], {'max_length': '4'})
|
||
|
},
|
||
|
'backend.movielanguage': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'language': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Language']"}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.Movie']"}),
|
||
|
'position': ('django.db.models.fields.IntegerField', [], {})
|
||
|
},
|
||
|
'backend.moviesort': {
|
||
|
'aspectratio': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'bitrate': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'cast': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'cinematographer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'connections': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'country': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'director': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'duration': ('django.db.models.fields.FloatField', [], {'default': '-1'}),
|
||
|
'editor': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'filename': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'files': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'genre': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'keywords': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'language': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sort'", 'unique': 'True', 'to': "orm['backend.Movie']"}),
|
||
|
'movieId': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
|
||
|
'pixels': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'producer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'resolution': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'risk': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'runtime': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'scenes': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'size': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'summary': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '1000'}),
|
||
|
'trivia': ('django.db.models.fields.IntegerField', [], {'blank': 'True'}),
|
||
|
'words': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'wpm': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
|
||
|
'writer': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'year': ('django.db.models.fields.CharField', [], {'max_length': '4'})
|
||
|
},
|
||
|
'backend.person': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'imdbId': ('django.db.models.fields.CharField', [], {'max_length': '7', 'blank': 'True'}),
|
||
|
'movies': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['backend.Movie']"}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
|
||
|
'name_sort': ('django.db.models.fields.CharField', [], {'max_length': '200'})
|
||
|
},
|
||
|
'backend.review': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reviews'", 'to': "orm['backend.Movie']"}),
|
||
|
'title': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
|
||
|
'url': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'})
|
||
|
},
|
||
|
'backend.reviewwhitelist': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
|
||
|
'url': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
|
||
|
},
|
||
|
'backend.subtitle': {
|
||
|
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'language': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
|
||
|
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||
|
'movie_file': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['backend.File']"}),
|
||
|
'srt': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
|
||
|
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
|
||
|
},
|
||
|
'backend.trivia': {
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'movie': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'trivia'", 'to': "orm['backend.Movie']"}),
|
||
|
'position': ('django.db.models.fields.IntegerField', [], {}),
|
||
|
'trivia': ('django.db.models.fields.TextField', [], {})
|
||
|
},
|
||
|
'contenttypes.contenttype': {
|
||
|
'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
|
||
|
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
||
|
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||
|
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
|
||
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
complete_apps = ['backend']
|