|
1 # -*- coding: utf-8 -*- |
|
2 from __future__ import unicode_literals |
|
3 |
|
4 from django.db import models, migrations |
|
5 from django.conf import settings |
|
6 import django.utils.timezone |
|
7 |
|
8 |
|
9 class Migration(migrations.Migration): |
|
10 |
|
11 dependencies = [ |
|
12 ] |
|
13 |
|
14 operations = [ |
|
15 migrations.CreateModel( |
|
16 name='AmmicoUser', |
|
17 fields=[ |
|
18 ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)), |
|
19 ('password', models.CharField(max_length=128, verbose_name='password')), |
|
20 ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')), |
|
21 ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), |
|
22 ('idUser', models.IntegerField(verbose_name='identifiant utilisateur', null=True, blank=True)), |
|
23 ('is_active', models.BooleanField(default=True)), |
|
24 ('is_admin', models.BooleanField(default=False)), |
|
25 ], |
|
26 options={ |
|
27 'abstract': False, |
|
28 }, |
|
29 bases=(models.Model,), |
|
30 ), |
|
31 migrations.CreateModel( |
|
32 name='Profile', |
|
33 fields=[ |
|
34 ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)), |
|
35 ('image', models.URLField(max_length=2048, blank=True)), |
|
36 ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), |
|
37 ], |
|
38 options={ |
|
39 }, |
|
40 bases=(models.Model,), |
|
41 ), |
|
42 ] |