live_share_youtube/player/migrations/0001_initial.py

35 lines
1 KiB
Python
Raw Normal View History

2018-03-24 19:07:17 +00:00
# Generated by Django 2.0.3 on 2018-03-24 19:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Link',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.URLField(verbose_name='Lien')),
],
),
migrations.CreateModel(
name='Playlist',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date', models.DateTimeField(verbose_name='date')),
],
),
migrations.AddField(
model_name='link',
name='playlist',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='player.Playlist', verbose_name='Playlist'),
),
]