# Migrations
initial migrations commit
This commit is contained in:
23
api/migrations/0001_initial.py
Normal file
23
api/migrations/0001_initial.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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')),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
api/migrations/__init__.py
Normal file
0
api/migrations/__init__.py
Normal file
Reference in New Issue
Block a user