SMART-29 done first db migration

This commit is contained in:
s460930 2020-11-30 22:17:41 +01:00
parent 2cee353794
commit 91e974ac10
9 changed files with 32 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,30 @@
# Generated by Django 3.1.3 on 2020-11-30 21:16
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')),
('is_active', models.BooleanField(default=True)),
('is_staff', models.BooleanField(default=False)),
('is_superuser', models.BooleanField(default=False)),
],
options={
'db_table': 'login',
},
),
]

View File

@ -37,6 +37,8 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'smartpicasso.app.user'
] ]
MIDDLEWARE = [ MIDDLEWARE = [