Files
backend/core/migrations/0001_initial.py
Michel Wilhelm 733f3e5992 Basic game creating API (#2)
* Adding the base of our API

* Little file and lint adjustments

* Adding the lint command to Makefile

* Adding the Minesweeper logic for game creation

* Adding some tests for the Minesweeper algorithm

* Adding some tools command to Makefile like pre-commit and pip-tools

* Adding test help text to Makefile

* all new user is_staff=True, for development for now

* Now we can get the data from specific game

Adding game status

Adding game status

Fixing game models
2020-11-05 23:29:35 -03:00

99 lines
3.3 KiB
Python

# Generated by Django 3.1.3 on 2020-11-05 00:51
import core.managers
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("auth", "0012_alter_user_first_name_max_length"),
]
operations = [
migrations.CreateModel(
name="User",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("password", models.CharField(max_length=128, verbose_name="password")),
(
"last_login",
models.DateTimeField(
blank=True, null=True, verbose_name="last login"
),
),
(
"email",
models.EmailField(
max_length=254, unique=True, verbose_name="E-mail"
),
),
(
"first_name",
models.CharField(
blank=True, max_length=30, verbose_name="First name"
),
),
(
"last_name",
models.CharField(
blank=True, max_length=30, verbose_name="Last name"
),
),
(
"date_joined",
models.DateTimeField(auto_now_add=True, verbose_name="date joined"),
),
(
"is_active",
models.BooleanField(default=True, verbose_name="User active?"),
),
("is_staff", models.BooleanField(default=False, verbose_name="Staff?")),
(
"is_superuser",
models.BooleanField(default=False, verbose_name="Superuser?"),
),
(
"groups",
models.ManyToManyField(
blank=True,
help_text="The groups this user belongs to. A"
"user will get all permissions granted to each of their groups.",
related_name="user_set",
related_query_name="user",
to="auth.Group",
verbose_name="groups",
),
),
(
"user_permissions",
models.ManyToManyField(
blank=True,
help_text="Specific permissions for this user.",
related_name="user_set",
related_query_name="user",
to="auth.Permission",
verbose_name="user permissions",
),
),
],
options={
"verbose_name": "User",
"verbose_name_plural": "Users",
"db_table": "users",
"ordering": ["first_name", "last_name"],
},
managers=[("objects", core.managers.UserManager())],
),
]