mirror of https://github.com/fspc/workstand.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
3.3 KiB
58 lines
3.3 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.4 on 2016-07-04 22:04
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('auth', '0007_alter_validators_add_error_messages'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='CustomUser',
|
|
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')),
|
|
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
|
|
('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')),
|
|
('is_admin', models.BooleanField(default=False)),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
|
|
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Member',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('email', models.EmailField(blank=True, max_length=255, null=True, verbose_name='email address')),
|
|
('email_consent', models.BooleanField(default=False)),
|
|
('first_name', models.CharField(max_length=255)),
|
|
('last_name', models.CharField(max_length=255)),
|
|
('preferred_name', models.CharField(blank=True, max_length=255, null=True)),
|
|
('date_of_birth', models.DateField(blank=True, null=True)),
|
|
('guardian_name', models.CharField(blank=True, max_length=255, null=True)),
|
|
('phone', models.CharField(blank=True, max_length=20, null=True)),
|
|
('street', models.CharField(blank=True, max_length=255, null=True)),
|
|
('city', models.CharField(blank=True, max_length=255, null=True)),
|
|
('province', models.CharField(blank=True, max_length=255, null=True)),
|
|
('country', models.CharField(blank=True, max_length=255, null=True)),
|
|
('post_code', models.CharField(max_length=20, null=True)),
|
|
('waiver', models.DateTimeField(blank=True, null=True)),
|
|
('is_active', models.BooleanField(default=True)),
|
|
('user', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|
|
|