33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
# Generated by Django 3.0.5 on 2020-04-23 19:04
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
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')),
|
|
('name', models.CharField(help_text='rtmp_application_name', max_length=100, unique=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Stream',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('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')),
|
|
],
|
|
),
|
|
]
|