Commit 7d65bb00 authored by Gabriel Geraldo's avatar Gabriel Geraldo

moved models from about app to homepage app

parent b57ddade
# Generated by Django 3.2 on 2023-02-13 12:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('about', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='Album',
),
migrations.DeleteModel(
name='Artist',
),
migrations.DeleteModel(
name='Song',
),
]
from django.db import models
# Create your models here.
class Artist(models.Model):
artist_name = models.TextField()
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.TextField()
artist = models.TextField()
description = models.TextField()
release_date = models.DateField()
class Song(models.Model):
song_title = models.TextField()
artist = models.TextField()
album = models.TextField()
song_length = models.IntegerField()
# Create your models here.
\ No newline at end of file
# Generated by Django 3.2 on 2023-02-13 12:29
from django.db import migrations, models
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.TextField()),
('artist', models.TextField()),
('description', models.TextField()),
('release_date', models.DateField()),
],
),
migrations.CreateModel(
name='Artist',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.TextField()),
('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.TextField()),
('artist', models.TextField()),
('album', models.TextField()),
('song_length', models.IntegerField()),
],
),
]
from django.db import models
# Create your models here.
class Artist(models.Model):
artist_name = models.TextField()
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.TextField()
artist = models.TextField()
description = models.TextField()
release_date = models.DateField()
class Song(models.Model):
song_title = models.TextField()
artist = models.TextField()
album = models.TextField()
song_length = models.IntegerField()
\ No newline at end of file
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