0001_initial.py 3.11 KB
Newer Older
fred's avatar
fred committed
1
# -*- coding: utf-8 -*-
fred's avatar
fred committed
2
from __future__ import unicode_literals
fred's avatar
fred committed
3

fred's avatar
fred committed
4
from django.db import models, migrations
fred's avatar
fred committed
5 6


fred's avatar
fred committed
7
class Migration(migrations.Migration):
fred's avatar
fred committed
8

fred's avatar
fred committed
9 10
    dependencies = [
    ]
fred's avatar
fred committed
11

fred's avatar
fred committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    operations = [
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Artist',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
            ],
            options={
                'ordering': ['name'],
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='NonstopFile',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('filepath', models.CharField(max_length=255, verbose_name='Filepath')),
                ('creation_timestamp', models.DateTimeField(auto_now_add=True, null=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='SomaLogLine',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('play_timestamp', models.DateTimeField()),
                ('filepath', models.ForeignKey(to='nonstop.NonstopFile')),
            ],
            options={
                'ordering': ['play_timestamp'],
                'verbose_name': 'Soma log line',
                'verbose_name_plural': 'Soma log lines',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Track',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', models.CharField(max_length=255, verbose_name='Title')),
                ('instru', models.BooleanField(default=False, verbose_name='Instru')),
                ('language', models.CharField(blank=True, max_length=3, choices=[(b'en', 'English'), (b'fr', 'French'), (b'nl', 'Dutch')])),
                ('sabam', models.BooleanField(default=True, verbose_name=b'SABAM')),
                ('cfwb', models.BooleanField(default=False, verbose_name=b'CFWB')),
                ('album', models.ForeignKey(to='nonstop.Album', null=True)),
                ('artist', models.ForeignKey(to='nonstop.Artist', null=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='nonstopfile',
            name='track',
            field=models.ForeignKey(to='nonstop.Track', null=True),
            preserve_default=True,
        ),
    ]