Migrate Album, Artist, and Song models

parent 31a871ef
No preview for this file type
# Generated by Django 3.2 on 2023-02-13 13:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('album_name', models.CharField(max_length=100)),
('description', models.CharField(max_length=1000)),
('release_date', models.IntegerField()),
],
),
migrations.CreateModel(
name='Artist',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.CharField(max_length=100)),
('monthly_listeners', models.IntegerField()),
],
),
migrations.CreateModel(
name='Song',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_title', models.CharField(max_length=100)),
('song_length', models.IntegerField()),
('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.album')),
('artist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.artist')),
],
),
migrations.AddField(
model_name='album',
name='artist',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.artist'),
),
]
commit 31a871ef3d4272e1770e52c65b986e6035d0f1e8 (HEAD -> main)
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 21:38:24 2023 +0800
Create models in homepage app
commit 49f5996d84144559b8c87de6e4764597dc164230
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 20:51:43 2023 +0800
Add homepage, about, and contact apps
commit ef6d0cae177986d594837c9e1c22df341badab50
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 20:29:23 2023 +0800
Connect URLs to view
commit 81ae55521726aa000bb4894897dce6da08fcbfa8
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 20:08:00 2023 +0800
Initialize Django app
commit 5db9a1b0a7105787b05739524b94f46b14fc933e
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 19:54:58 2023 +0800
Initialize Django project
commit 03104483597346cbe8ebcccbf4db10bb38e40198
Author: jicrisologo <joaquin.crisologo@obf.ateneo.edu>
Date: Mon Feb 13 19:01:36 2023 +0800
Add file README.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment