# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-22 09:08
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('backoffice', '0062_user_acceptpush'),
    ]

    operations = [
        migrations.CreateModel(
            name='Article',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(blank=True, max_length=255, null=True)),
                ('chapeau', models.CharField(blank=True, max_length=512, null=True)),
                ('texte', models.TextField()),
                ('image', models.ImageField(blank=True, null=True, upload_to='media/%Y/%m/%d')),
                ('lienWeb', models.CharField(blank=True, max_length=255, null=True)),
                ('createdAt', models.DateTimeField(auto_now_add=True)),
                ('updatedAt', models.DateTimeField(auto_now=True)),
                ('valid', models.BooleanField(default=True)),
                ('refTown', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='backoffice.Town')),
            ],
        ),
    ]
