# Generated by Django 2.2.5 on 2019-09-19 13:22

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(max_length=255)),
                ('image_cat', models.ImageField(upload_to='Article/')),
                ('image_detail', models.ImageField(upload_to='Article/')),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('auteur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Article', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Article',
                'verbose_name_plural': 'Articles',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nom', models.CharField(max_length=50)),
                ('date_add', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'Tag',
                'verbose_name_plural': 'Tags',
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('content', models.TextField()),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('article_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Article_Comment', to='blog.Article')),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Comment', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Comment',
                'verbose_name_plural': 'Comments',
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nom', models.CharField(max_length=255)),
                ('image', models.ImageField(upload_to='category/')),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Category', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Category',
                'verbose_name_plural': 'Categorys',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='category_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Category_Article', to='blog.Category'),
        ),
        migrations.AddField(
            model_name='article',
            name='tags',
            field=models.ManyToManyField(to='blog.Tag'),
        ),
    ]

6da15aa295c24d38d6f433f722b513de12392e2b
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Article', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('titre', models.CharField(max_length=
        255)), ('image_cat', models.ImageField(upload_to='Article/')), (
        'image_detail', models.ImageField(upload_to='Article/')), (
        'date_add', models.DateTimeField(auto_now_add=True)), ('date_upd',
        models.DateTimeField(auto_now=True)), ('statut', models.
        BooleanField()), ('auteur', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, related_name='User_Article', to=settings.
        AUTH_USER_MODEL))], options={'verbose_name': 'Article',
        'verbose_name_plural': 'Articles'}), migrations.CreateModel(name=
        'Tag', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('nom',
        models.CharField(max_length=50)), ('date_add', models.DateTimeField
        (auto_now_add=True))], options={'verbose_name': 'Tag',
        'verbose_name_plural': 'Tags'}), migrations.CreateModel(name=
        'Comment', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('content',
        models.TextField()), ('date_add', models.DateTimeField(auto_now_add
        =True)), ('date_upd', models.DateTimeField(auto_now=True)), (
        'statut', models.BooleanField()), ('article_id', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name=
        'Article_Comment', to='blog.Article')), ('user_id', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='User_Comment', to=settings.AUTH_USER_MODEL))],
        options={'verbose_name': 'Comment', 'verbose_name_plural':
        'Comments'}), migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('nom', models.CharField(max_length=255
        )), ('image', models.ImageField(upload_to='category/')), (
        'date_add', models.DateTimeField(auto_now_add=True)), ('date_upd',
        models.DateTimeField(auto_now=True)), ('statut', models.
        BooleanField()), ('user_id', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, related_name='User_Category', to=settings.
        AUTH_USER_MODEL))], options={'verbose_name': 'Category',
        'verbose_name_plural': 'Categorys'}), migrations.AddField(
        model_name='article', name='category_id', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name=
        'Category_Article', to='blog.Category')), migrations.AddField(
        model_name='article', name='tags', field=models.ManyToManyField(to=
        'blog.Tag'))]

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Article', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('titre', models.CharField(max_length=
        255)), ('image_cat', models.ImageField(upload_to='Article/')), (
        'image_detail', models.ImageField(upload_to='Article/')), (
        'date_add', models.DateTimeField(auto_now_add=True)), ('date_upd',
        models.DateTimeField(auto_now=True)), ('statut', models.
        BooleanField()), ('auteur', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, related_name='User_Article', to=settings.
        AUTH_USER_MODEL))], options={'verbose_name': 'Article',
        'verbose_name_plural': 'Articles'}), migrations.CreateModel(name=
        'Tag', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('nom',
        models.CharField(max_length=50)), ('date_add', models.DateTimeField
        (auto_now_add=True))], options={'verbose_name': 'Tag',
        'verbose_name_plural': 'Tags'}), migrations.CreateModel(name=
        'Comment', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('content',
        models.TextField()), ('date_add', models.DateTimeField(auto_now_add
        =True)), ('date_upd', models.DateTimeField(auto_now=True)), (
        'statut', models.BooleanField()), ('article_id', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name=
        'Article_Comment', to='blog.Article')), ('user_id', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='User_Comment', to=settings.AUTH_USER_MODEL))],
        options={'verbose_name': 'Comment', 'verbose_name_plural':
        'Comments'}), migrations.CreateModel(name='Category', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('nom', models.CharField(max_length=255
        )), ('image', models.ImageField(upload_to='category/')), (
        'date_add', models.DateTimeField(auto_now_add=True)), ('date_upd',
        models.DateTimeField(auto_now=True)), ('statut', models.
        BooleanField()), ('user_id', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, related_name='User_Category', to=settings.
        AUTH_USER_MODEL))], options={'verbose_name': 'Category',
        'verbose_name_plural': 'Categorys'}), migrations.AddField(
        model_name='article', name='category_id', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name=
        'Category_Article', to='blog.Category')), migrations.AddField(
        model_name='article', name='tags', field=models.ManyToManyField(to=
        'blog.Tag'))]

# Generated by Django 2.2.5 on 2019-09-19 13:22

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(max_length=255)),
                ('image_cat', models.ImageField(upload_to='Article/')),
                ('image_detail', models.ImageField(upload_to='Article/')),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('auteur', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Article', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Article',
                'verbose_name_plural': 'Articles',
            },
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nom', models.CharField(max_length=50)),
                ('date_add', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'Tag',
                'verbose_name_plural': 'Tags',
            },
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('content', models.TextField()),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('article_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Article_Comment', to='blog.Article')),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Comment', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Comment',
                'verbose_name_plural': 'Comments',
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nom', models.CharField(max_length=255)),
                ('image', models.ImageField(upload_to='category/')),
                ('date_add', models.DateTimeField(auto_now_add=True)),
                ('date_upd', models.DateTimeField(auto_now=True)),
                ('statut', models.BooleanField()),
                ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='User_Category', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Category',
                'verbose_name_plural': 'Categorys',
            },
        ),
        migrations.AddField(
            model_name='article',
            name='category_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Category_Article', to='blog.Category'),
        ),
        migrations.AddField(
            model_name='article',
            name='tags',
            field=models.ManyToManyField(to='blog.Tag'),
        ),
    ]
