2017-08-16 20:00:41 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11 on 2017-08-16 19:55
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
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')),
|
|
|
|
('name', models.CharField(max_length=254)),
|
|
|
|
],
|
2017-08-17 19:09:55 +00:00
|
|
|
options={'ordering': ('name',)},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Game',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('name', models.CharField(max_length=254)),
|
|
|
|
('console', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='games.Console')),
|
2017-08-17 20:42:48 +00:00
|
|
|
('playing', models.BooleanField(default=False)),
|
|
|
|
('status', models.IntegerField(choices=[(4, 'Unfinished'), (0, 'Beaten'), (1, 'Completed'), (2, 'Excluded'), (3, 'Mastered')], default=4)),
|
|
|
|
('unplayed', models.BooleanField(default=False)),
|
|
|
|
('wish', models.BooleanField(default=False)),
|
2017-08-17 19:09:55 +00:00
|
|
|
],
|
2017-08-17 20:42:48 +00:00
|
|
|
options={'ordering': ('-playing', 'name')},
|
2017-08-16 20:00:41 +00:00
|
|
|
),
|
|
|
|
]
|