server/src/authentication/migrations/0001_initial.py
author rougeronj
Tue, 09 Jun 2015 19:05:36 +0200
changeset 144 f511255cda6e
permissions -rw-r--r--
add new migration
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
144
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     2
from __future__ import unicode_literals
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     3
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     4
from django.db import models, migrations
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     5
from django.conf import settings
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     6
import django.utils.timezone
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     7
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     8
f511255cda6e add new migration
rougeronj
parents:
diff changeset
     9
class Migration(migrations.Migration):
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    10
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    11
    dependencies = [
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    12
    ]
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    13
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    14
    operations = [
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    15
        migrations.CreateModel(
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    16
            name='AmmicoUser',
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    17
            fields=[
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    18
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    19
                ('password', models.CharField(verbose_name='password', max_length=128)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    20
                ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    21
                ('email', models.EmailField(verbose_name='email address', unique=True, max_length=255)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    22
                ('idUser', models.IntegerField(blank=True, verbose_name='identifiant utilisateur', null=True)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    23
                ('is_active', models.BooleanField(default=True)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    24
                ('is_admin', models.BooleanField(default=False)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    25
            ],
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    26
            options={
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    27
                'abstract': False,
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    28
            },
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    29
            bases=(models.Model,),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    30
        ),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    31
        migrations.CreateModel(
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    32
            name='Profile',
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    33
            fields=[
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    34
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    35
                ('image', models.URLField(blank=True, max_length=2048)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    36
                ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    37
            ],
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    38
            options={
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    39
            },
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    40
            bases=(models.Model,),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    41
        ),
f511255cda6e add new migration
rougeronj
parents:
diff changeset
    42
    ]