# Generated by Django 2.2.24 on 2022-02-08 13:32

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('base', '0029_auto_20210202_1627'),
    ]

    operations = [
        migrations.CreateModel(
            name='AstreREST',
            fields=[
                (
                    'id',
                    models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
                ),
                ('title', models.CharField(max_length=50, verbose_name='Title')),
                ('slug', models.SlugField(unique=True, verbose_name='Identifier')),
                ('description', models.TextField(verbose_name='Description')),
                ('base_url', models.URLField(verbose_name='API URL')),
                ('username', models.CharField(max_length=32, verbose_name='Username')),
                ('password', models.CharField(max_length=32, verbose_name='Password')),
                ('database', models.CharField(max_length=32, verbose_name='Database')),
                ('organism', models.CharField(max_length=32, verbose_name='Organisme')),
                ('budget', models.CharField(max_length=32, verbose_name='Budget')),
                ('exercice', models.CharField(max_length=32, verbose_name='Exercice')),
                (
                    'verify_cert',
                    models.BooleanField(default=True, verbose_name='Check HTTPS Certificate validity'),
                ),
                (
                    'users',
                    models.ManyToManyField(
                        blank=True,
                        related_name='_astrerest_users_+',
                        related_query_name='+',
                        to='base.ApiUser',
                    ),
                ),
            ],
            options={
                'verbose_name': 'Astre REST',
            },
        ),
    ]
