2019-02-28 09:58:53 +00:00
|
|
|
# Generated by Django 2.1.7 on 2019-02-28 08:07
|
|
|
|
|
2022-11-04 06:22:38 +00:00
|
|
|
import common.db.models
|
2019-02-28 09:58:53 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2019-03-04 07:38:59 +00:00
|
|
|
('users', '0019_auto_20190304_1459'),
|
2019-02-28 09:58:53 +00:00
|
|
|
]
|
|
|
|
|
2019-03-04 07:38:59 +00:00
|
|
|
state_operations = [
|
2019-02-28 09:58:53 +00:00
|
|
|
migrations.CreateModel(
|
|
|
|
name='AccessKey',
|
|
|
|
fields=[
|
|
|
|
('id',
|
|
|
|
models.UUIDField(default=uuid.uuid4, editable=False,
|
|
|
|
primary_key=True, serialize=False,
|
|
|
|
verbose_name='AccessKeyID')),
|
|
|
|
('secret',
|
|
|
|
models.UUIDField(default=uuid.uuid4, editable=False,
|
|
|
|
verbose_name='AccessKeySecret')),
|
|
|
|
('user', models.ForeignKey(
|
2022-11-04 06:22:38 +00:00
|
|
|
on_delete=common.db.models.CASCADE_SIGNAL_SKIP,
|
2019-02-28 09:58:53 +00:00
|
|
|
related_name='access_keys',
|
|
|
|
to=settings.AUTH_USER_MODEL, verbose_name='User')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='PrivateToken',
|
|
|
|
fields=[
|
|
|
|
('key',
|
|
|
|
models.CharField(max_length=40, primary_key=True,
|
|
|
|
serialize=False, verbose_name='Key')),
|
|
|
|
('created', models.DateTimeField(auto_now_add=True,
|
|
|
|
verbose_name='Created')),
|
|
|
|
('user', models.OneToOneField(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name='auth_token',
|
|
|
|
to=settings.AUTH_USER_MODEL, verbose_name='User')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Private Token',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|
2019-03-04 07:38:59 +00:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.SeparateDatabaseAndState(state_operations=state_operations)
|
|
|
|
]
|