You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
konova/api/migrations/0001_initial.py

24 lines
726 B
Python

# Generated by Django 3.1.3 on 2022-01-28 15:48
from django.db import migrations, models
import konova.utils.generators
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='APIUserToken',
fields=[
('token', models.CharField(default=konova.utils.generators.generate_token, max_length=1000, primary_key=True, serialize=False)),
('valid_until', models.DateField(blank=True, help_text='Token is only valid until this date', null=True)),
('is_active', models.BooleanField(default=False, help_text='Must be activated by an admin')),
],
),
]