SMART-29 done first db migration
This commit is contained in:
parent
2cee353794
commit
91e974ac10
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
rest-app/smartpicasso/app/user/__pycache__/admin.cpython-38.pyc
Normal file
BIN
rest-app/smartpicasso/app/user/__pycache__/admin.cpython-38.pyc
Normal file
Binary file not shown.
BIN
rest-app/smartpicasso/app/user/__pycache__/models.cpython-38.pyc
Normal file
BIN
rest-app/smartpicasso/app/user/__pycache__/models.cpython-38.pyc
Normal file
Binary file not shown.
30
rest-app/smartpicasso/app/user/migrations/0001_initial.py
Normal file
30
rest-app/smartpicasso/app/user/migrations/0001_initial.py
Normal 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',
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
Binary file not shown.
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user