openbackloggery/collection/games/migrations/0001_initial.py

58 lines
2.4 KiB
Python
Raw Permalink Normal View History

2017-08-16 20:00:41 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-08-22 18:56
2017-08-16 20:00:41 +00:00
from __future__ import unicode_literals
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')),
('name', models.CharField(max_length=255)),
2017-08-16 20:00:41 +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')),
('name', models.CharField(max_length=255)),
('playing', models.BooleanField(default=False)),
('unplayed', models.BooleanField(default=False)),
('wish', models.BooleanField(default=False)),
('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
],
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
),
]