2021-11-04 10:29:03 +00:00
|
|
|
# Generated by Django 2.2.24 on 2021-11-02 15:11
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('users', '0042_delete_adhesion'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='AccessToken',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('access_token', models.CharField(max_length=32, verbose_name='access token')),
|
2021-11-14 14:49:58 +00:00
|
|
|
('expires_in', models.PositiveIntegerField(verbose_name='expires in')),
|
2021-11-04 10:29:03 +00:00
|
|
|
('scopes', models.CharField(max_length=255, verbose_name='scopes')),
|
|
|
|
('refresh_token', models.CharField(max_length=32, verbose_name='refresh token')),
|
|
|
|
('expires_at', models.DateTimeField(verbose_name='expires at')),
|
|
|
|
('owner', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='owner')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'access token',
|
|
|
|
'verbose_name_plural': 'access tokens',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|