33 lines
1,007 B
Python
33 lines
1,007 B
Python
|
# Generated by Django 4.0.4 on 2022-05-05 09:48
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Video',
|
||
|
fields=[
|
||
|
('id', models.CharField(max_length=11, primary_key=True, serialize=False)),
|
||
|
('title', models.CharField(max_length=100)),
|
||
|
('description', models.TextField(blank=True, null=True)),
|
||
|
('path', models.CharField(max_length=1024)),
|
||
|
('original_json', models.JSONField(blank=True, null=True)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Playlist',
|
||
|
fields=[
|
||
|
('id', models.CharField(max_length=34, primary_key=True, serialize=False)),
|
||
|
('title', models.CharField(max_length=100)),
|
||
|
('videos', models.ManyToManyField(to='backend.video')),
|
||
|
],
|
||
|
),
|
||
|
]
|