Chris Shyi
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 79 deletions
@ -1,79 +0,0 @@ |
|||
# Generated by Django 2.0.5 on 2018-06-07 00:52 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
initial = True |
|||
|
|||
dependencies = [ |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Artist', |
|||
fields=[ |
|||
('artist_id', models.CharField(max_length=30, primary_key=True, serialize=False)), |
|||
('name', models.CharField(max_length=50, unique=True)), |
|||
('genre', models.CharField(max_length=20)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Artist', |
|||
'verbose_name_plural': 'Artists', |
|||
}, |
|||
), |
|||
migrations.CreateModel( |
|||
name='Track', |
|||
fields=[ |
|||
('track_id', models.CharField(max_length=30, primary_key=True, serialize=False)), |
|||
('year', models.PositiveSmallIntegerField()), |
|||
('popularity', models.PositiveSmallIntegerField()), |
|||
('runtime', models.PositiveSmallIntegerField()), |
|||
('name', models.CharField(max_length=75)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Track', |
|||
'verbose_name_plural': 'Tracks', |
|||
}, |
|||
), |
|||
migrations.CreateModel( |
|||
name='User', |
|||
fields=[ |
|||
('user_id', models.CharField(max_length=30, primary_key=True, serialize=False)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'User', |
|||
'verbose_name_plural': 'Users', |
|||
}, |
|||
), |
|||
migrations.CreateModel( |
|||
name='AudioFeatures', |
|||
fields=[ |
|||
('track', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='spotifyvis.Track')), |
|||
('acousticness', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
('danceability', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
('energy', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
('instrumentalness', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
('loudness', models.DecimalField(decimal_places=3, max_digits=6)), |
|||
('speechiness', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
('tempo', models.DecimalField(decimal_places=3, max_digits=6)), |
|||
('valence', models.DecimalField(decimal_places=3, max_digits=3)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'AudioFeatures', |
|||
'verbose_name_plural': 'AudioFeatures', |
|||
}, |
|||
), |
|||
migrations.AddField( |
|||
model_name='track', |
|||
name='artists', |
|||
field=models.ManyToManyField(blank=True, to='spotifyvis.Artist'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='track', |
|||
name='users', |
|||
field=models.ManyToManyField(blank=True, to='spotifyvis.User'), |
|||
), |
|||
] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue