portier/source/rtmp/migrations/0001_initial.py

33 lines
1.1 KiB
Python
Raw Normal View History

# 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
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')),
('name', models.CharField(help_text='rtmp_application_name', max_length=100, unique=True)),
2020-04-15 20:29:59 +02:00
],
),
migrations.CreateModel(
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')),
('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
],
),
]