1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-24 14:47:33 +00:00
Altessimo/songs/migrations/0001_initial.py

48 lines
2.0 KiB
Python
Raw Normal View History

2020-12-16 14:26:15 +00:00
# Generated by Django 3.1.4 on 2020-12-16 14:26
2020-12-15 21:32:20 +00:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
2020-12-16 14:26:15 +00:00
('categories', '0001_initial'),
('artists', '0001_initial'),
2020-12-15 21:32:20 +00:00
]
operations = [
migrations.CreateModel(
name='Song',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2020-12-16 14:26:15 +00:00
('title', models.CharField(blank=True, max_length=255)),
('romanized_title', models.CharField(blank=True, max_length=255)),
2020-12-15 21:32:20 +00:00
('impression', models.TextField(blank=True)),
('arranger', models.ManyToManyField(blank=True, related_name='arranged_songs', to='artists.Artist')),
2020-12-16 14:26:15 +00:00
('branch', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, to='categories.branch')),
2020-12-15 21:32:20 +00:00
('composer', models.ManyToManyField(blank=True, related_name='composed_songs', to='artists.Artist')),
('lyricist', models.ManyToManyField(blank=True, related_name='written_songs', to='artists.Artist')),
],
2020-12-16 14:26:15 +00:00
options={
'ordering': ['romanized_title', 'title'],
},
2020-12-15 21:32:20 +00:00
),
migrations.CreateModel(
name='OutsideSong',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2020-12-16 14:26:15 +00:00
('title', models.CharField(blank=True, max_length=255)),
('artist', models.CharField(blank=True, max_length=255)),
('origin', models.CharField(blank=True, max_length=255)),
('url', models.URLField(blank=True, max_length=255)),
2020-12-15 21:32:20 +00:00
('composer', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='artists.artist')),
],
2020-12-16 14:26:15 +00:00
options={
'ordering': ['composer', 'title'],
},
2020-12-15 21:32:20 +00:00
),
]