32 lines
1.3 KiB
Python
32 lines
1.3 KiB
Python
|
# 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')),
|
||
|
('expires_in', models.PositiveSmallIntegerField(verbose_name='expires in')),
|
||
|
('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',
|
||
|
},
|
||
|
),
|
||
|
]
|