|
- # -*- coding: utf-8 -*-
- # Generated by Django 1.9.6 on 2016-09-24 08:11
- from __future__ import unicode_literals
-
- from django.conf import settings
- from django.db import migrations, models
- import django.db.models.deletion
- import uuid
-
-
- class Migration(migrations.Migration):
-
- dependencies = [
- ("api", "0001_initial"),
- ]
-
- operations = [
- migrations.CreateModel(
- name="Password",
- fields=[
- (
- "created",
- models.DateTimeField(auto_now_add=True, verbose_name="created"),
- ),
- (
- "modified",
- models.DateTimeField(auto_now=True, verbose_name="modified"),
- ),
- (
- "id",
- models.UUIDField(
- default=uuid.uuid4,
- editable=False,
- primary_key=True,
- serialize=False,
- ),
- ),
- ("login", models.CharField(blank=True, max_length=255, null=True)),
- ("site", models.CharField(blank=True, max_length=255, null=True)),
- ("lowercase", models.BooleanField(default=True)),
- ("uppercase", models.BooleanField(default=True)),
- ("symbols", models.BooleanField(default=True)),
- ("numbers", models.BooleanField(default=True)),
- ("counter", models.IntegerField(default=1)),
- ("length", models.IntegerField(default=12)),
- (
- "user",
- models.ForeignKey(
- on_delete=django.db.models.deletion.CASCADE,
- related_name="passwords",
- to=settings.AUTH_USER_MODEL,
- ),
- ),
- ],
- options={
- "abstract": False,
- },
- ),
- ]
|