accounts/apps/gooyal_oauth2/migrations/0003_auto_20200611_0828.py
2020-06-11 16:01:54 +04:30

37 lines
1.4 KiB
Python

# Generated by Django 3.0.6 on 2020-06-11 08:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('gooyal_oauth2', '0002_scope'),
]
operations = [
migrations.AlterField(
model_name='application',
name='user',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='gooyal_oauth2_application', to=settings.AUTH_USER_MODEL),
),
migrations.CreateModel(
name='Resource',
fields=[
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
('name', models.CharField(blank=True, max_length=255)),
('expires', models.DateTimeField()),
('token', models.CharField(max_length=255, unique=True)),
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='resources', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]