2015-06-29 04:43:17 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
2015-08-07 12:25:58 +00:00
|
|
|
import account.models
|
2015-06-29 04:43:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='User',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('password', models.CharField(max_length=128, verbose_name='password')),
|
|
|
|
('last_login', models.DateTimeField(null=True, verbose_name='last login', blank=True)),
|
|
|
|
('username', models.CharField(unique=True, max_length=30)),
|
2015-08-07 12:25:58 +00:00
|
|
|
('real_name', models.CharField(max_length=30, null=True, blank=True)),
|
|
|
|
('email', models.EmailField(max_length=254, null=True, blank=True)),
|
|
|
|
('create_time', models.DateTimeField(auto_now_add=True)),
|
|
|
|
('admin_type', models.IntegerField(default=0)),
|
2015-06-29 04:43:17 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'db_table': 'user',
|
|
|
|
},
|
2015-08-07 12:25:58 +00:00
|
|
|
managers=[
|
|
|
|
('objects', account.models.UserManager()),
|
|
|
|
],
|
2015-06-29 04:43:17 +00:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='AdminGroup',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|