2020-04-23 21:08:39 +02:00
|
|
|
# Generated by Django 3.0.5 on 2020-04-23 19:04
|
2020-04-15 20:29:59 +02:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2020-04-23 21:08:39 +02:00
|
|
|
import uuid
|
2020-04-15 20:29:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Application',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-04-23 21:08:39 +02:00
|
|
|
('name', models.CharField(help_text='rtmp_application_name', max_length=100, unique=True)),
|
2020-04-15 20:29:59 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2020-04-23 21:08:39 +02:00
|
|
|
name='Stream',
|
2020-04-15 20:29:59 +02:00
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-04-23 21:08:39 +02:00
|
|
|
('stream', models.CharField(default=uuid.uuid4, max_length=64, unique=True)),
|
|
|
|
('name', models.CharField(max_length=100)),
|
|
|
|
('application', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rtmp.Application')),
|
2020-04-15 20:29:59 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|