# Generated by Django 2.2.24 on 2022-06-21 13:21

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Resource',
            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')),
                ('consumer_key', models.CharField(max_length=128, verbose_name='Consumer key')),
                ('consumer_secret', models.CharField(max_length=128, verbose_name='Consumer secret')),
                (
                    'environment',
                    models.CharField(
                        choices=[('test', 'Test'), ('prod', 'Production')],
                        max_length=4,
                        verbose_name='Environment',
                    ),
                ),
                (
                    'users',
                    models.ManyToManyField(
                        blank=True,
                        related_name='_resource_users_+',
                        related_query_name='+',
                        to='base.ApiUser',
                    ),
                ),
            ],
            options={
                'verbose_name': 'SIvin',
            },
        ),
    ]
