|
144
|
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(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
|
19 |
('password', models.CharField(verbose_name='password', max_length=128)), |
|
|
20 |
('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')), |
|
|
21 |
('email', models.EmailField(verbose_name='email address', unique=True, max_length=255)), |
|
|
22 |
('idUser', models.IntegerField(blank=True, verbose_name='identifiant utilisateur', null=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(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
|
35 |
('image', models.URLField(blank=True, max_length=2048)), |
|
|
36 |
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)), |
|
|
37 |
], |
|
|
38 |
options={ |
|
|
39 |
}, |
|
|
40 |
bases=(models.Model,), |
|
|
41 |
), |
|
|
42 |
] |