2018-06-12 00:57:53 -04:00
|
|
|
# Generated by Django 2.0.6 on 2018-06-12 04:51
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
import django.utils.timezone
|
|
|
|
import model_utils.fields
|
|
|
|
import randomslugfield.fields
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2023-08-10 02:52:37 -04:00
|
|
|
("lemonauth", "0002_delete_indieauthcode"),
|
2018-06-12 00:57:53 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2023-08-10 02:52:37 -04:00
|
|
|
name="IndieAuthCode",
|
2018-06-12 00:57:53 -04:00
|
|
|
fields=[
|
2023-08-10 02:52:37 -04:00
|
|
|
(
|
|
|
|
"created",
|
|
|
|
model_utils.fields.AutoCreatedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="created",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"modified",
|
|
|
|
model_utils.fields.AutoLastModifiedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="modified",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
randomslugfield.fields.RandomSlugField(
|
|
|
|
blank=True,
|
|
|
|
editable=False,
|
|
|
|
length=30,
|
|
|
|
max_length=30,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
unique=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("client_id", models.URLField()),
|
|
|
|
("scope", models.TextField(blank=True)),
|
|
|
|
("redirect_uri", models.URLField()),
|
|
|
|
(
|
|
|
|
"response_type",
|
|
|
|
model_utils.fields.StatusField(
|
|
|
|
choices=[("id", "id"), ("code", "code")],
|
|
|
|
default="id",
|
|
|
|
max_length=100,
|
|
|
|
no_check_for_status=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
2018-06-12 00:57:53 -04:00
|
|
|
],
|
|
|
|
options={
|
2023-08-10 02:52:37 -04:00
|
|
|
"abstract": False,
|
2018-06-12 00:57:53 -04:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2023-08-10 02:52:37 -04:00
|
|
|
name="Token",
|
2018-06-12 00:57:53 -04:00
|
|
|
fields=[
|
2023-08-10 02:52:37 -04:00
|
|
|
(
|
|
|
|
"created",
|
|
|
|
model_utils.fields.AutoCreatedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="created",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"modified",
|
|
|
|
model_utils.fields.AutoLastModifiedField(
|
|
|
|
default=django.utils.timezone.now,
|
|
|
|
editable=False,
|
|
|
|
verbose_name="modified",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
randomslugfield.fields.RandomSlugField(
|
|
|
|
blank=True,
|
|
|
|
editable=False,
|
|
|
|
length=30,
|
|
|
|
max_length=30,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
unique=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("client_id", models.URLField()),
|
|
|
|
("scope", models.TextField(blank=True)),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
2018-06-12 00:57:53 -04:00
|
|
|
],
|
|
|
|
options={
|
2023-08-10 02:52:37 -04:00
|
|
|
"abstract": False,
|
2018-06-12 00:57:53 -04:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|