0001_initial.py
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-06-08 16:22
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import user.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('email', models.EmailField(max_length=254, unique=True)),
('name', models.CharField(max_length=100)),
('date_of_birth', models.DateField(default=datetime.date.today)),
('storage_usage', models.FloatField(default=0)),
('is_admin', models.BooleanField(default=False)),
],
options={
'abstract': False,
},
managers=[
('objects', user.models.UserManager()),
],
),
]