obsolete.computer

multistream/frontend/migrations/0001_initial.py

File Type: text/x-script.python

# Generated by Django 2.1.3 on 2019-02-03 17:06

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Channel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60)),
                ('active', models.BooleanField(default=False)),
                ('logo', models.URLField(blank=True, editable=False)),
                ('preview', models.URLField(blank=True, editable=False)),
                ('game', models.CharField(blank=True, editable=False, max_length=60)),
                ('live', models.BooleanField(default=False, editable=False)),
                ('tid', models.CharField(blank=True, editable=False, max_length=16)),
                ('viewer_count', models.IntegerField(default=0, editable=False)),
            ],
        ),
        migrations.CreateModel(
            name='Community',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
                ('active', models.BooleanField(default=True)),
                ('index', models.IntegerField(default=0)),
                ('domain', models.CharField(blank=True, max_length=255)),
            ],
            options={
                'verbose_name_plural': 'communities',
            },
        ),
        migrations.AddField(
            model_name='channel',
            name='communities',
            field=models.ManyToManyField(blank=True, related_name='channels', to='frontend.Community'),
        ),
    ]

Meta