2017-08-16 20:00:41 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-08-22 19:02:43 +00:00
|
|
|
# Generated by Django 1.11 on 2017-08-22 18:56
|
2017-08-16 20:00:41 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-08-22 19:02:43 +00:00
|
|
|
import datetime
|
2017-08-16 20:00:41 +00:00
|
|
|
from django.db import migrations, models
|
2017-08-17 19:09:55 +00:00
|
|
|
import django.db.models.deletion
|
2017-08-16 20:00:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Console',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2017-08-22 19:02:43 +00:00
|
|
|
('name', models.CharField(max_length=255)),
|
2017-08-16 20:00:41 +00:00
|
|
|
],
|
2017-08-22 19:02:43 +00:00
|
|
|
options={
|
|
|
|
'ordering': ['name'],
|
|
|
|
'abstract': False,
|
|
|
|
},
|
2017-08-17 19:09:55 +00:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Game',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2017-08-22 19:02:43 +00:00
|
|
|
('name', models.CharField(max_length=255)),
|
2017-08-17 20:42:48 +00:00
|
|
|
('playing', models.BooleanField(default=False)),
|
|
|
|
('unplayed', models.BooleanField(default=False)),
|
|
|
|
('wish', models.BooleanField(default=False)),
|
2017-08-22 19:02:43 +00:00
|
|
|
('status', models.CharField(choices=[('created', 'New'), ('beaten', 'Beaten'), ('completed', 'Completed'), ('excluded', 'Excluded'), ('mastered', 'Mastered'), ('unfinished', 'Unfinished')], default='unfinished', max_length=30)),
|
|
|
|
('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='games', to='games.Console', verbose_name='console')),
|
2017-08-17 19:09:55 +00:00
|
|
|
],
|
2017-08-22 19:02:43 +00:00
|
|
|
options={
|
|
|
|
'ordering': ('-playing', 'name'),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Timeline',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('date', models.DateTimeField(default=datetime.datetime.now)),
|
|
|
|
('status', models.CharField(choices=[('created', 'New'), ('beaten', 'Beaten'), ('completed', 'Completed'), ('excluded', 'Excluded'), ('mastered', 'Mastered'), ('unfinished', 'Unfinished')], default='created', max_length=30)),
|
|
|
|
('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='games.Game')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ('-date',),
|
|
|
|
'abstract': False,
|
|
|
|
},
|
2017-08-16 20:00:41 +00:00
|
|
|
),
|
|
|
|
]
|