33 lines
1.7 KiB
Python
33 lines
1.7 KiB
Python
|
# Generated by Django 2.0.7 on 2018-11-23 15:20
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import minecraft_manager.api.api
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('minecraft_manager', '0010_auto_20180921_2306'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Token',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('key', models.CharField(default=minecraft_manager.api.api.generate_password, max_length=50, unique=True, verbose_name='Key')),
|
||
|
('active', models.BooleanField(default=True, verbose_name='Active')),
|
||
|
('web_get_permission', models.BooleanField(default=False, verbose_name='Web GET')),
|
||
|
('web_post_permission', models.BooleanField(default=False, verbose_name='Web POST')),
|
||
|
('plugin_get_permission', models.BooleanField(default=False, verbose_name='Plugin GET')),
|
||
|
('plugin_post_permission', models.BooleanField(default=False, verbose_name='Plugin POST')),
|
||
|
('form_get_permission', models.BooleanField(default=False, verbose_name='Form GET')),
|
||
|
('form_post_permission', models.BooleanField(default=False, verbose_name='Form POST')),
|
||
|
('model_get_permission', models.BooleanField(default=False, verbose_name='Model GET')),
|
||
|
('model_post_permission', models.BooleanField(default=False, verbose_name='Model POST')),
|
||
|
('stats_get_permission', models.BooleanField(default=False, verbose_name='Stats GET')),
|
||
|
('stats_post_permission', models.BooleanField(default=False, verbose_name='Stats POST')),
|
||
|
],
|
||
|
),
|
||
|
]
|