41 lines
1.7 KiB
Python
41 lines
1.7 KiB
Python
# Generated by Django 5.0.2 on 2024-02-27 19:20
|
|
|
|
import django.db.models.deletion
|
|
import uuid
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Stream',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('stream', models.UUIDField(default=uuid.uuid4, help_text='Stream ID for this stream', unique=True)),
|
|
('name', models.CharField(help_text='Name for this stream', max_length=100)),
|
|
('publish_counter', models.PositiveIntegerField(default=0)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Restream',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('target', models.CharField(help_text='restream_target_help', max_length=500)),
|
|
('name', models.CharField(help_text='restream_name_help', max_length=100)),
|
|
('active', models.BooleanField(help_text='restream_activate_help')),
|
|
('format', models.CharField(choices=[('flv', 'flv (RTMP)'), ('mpegts', 'mpegts (SRT)')], default='flv', help_text='restream_format_help', max_length=6)),
|
|
('stream', models.ForeignKey(help_text='restream_stream_help', on_delete=django.db.models.deletion.CASCADE, to='config.stream')),
|
|
],
|
|
options={
|
|
'verbose_name': 'restream_verbose_name',
|
|
'verbose_name_plural': 'restream_verbose_name_plural',
|
|
},
|
|
),
|
|
]
|