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.

преди 6 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.9.5 on 2016-04-06 10:11
  3. from __future__ import unicode_literals
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. import django.db.models.deletion
  7. import uuid
  8. class Migration(migrations.Migration):
  9. initial = True
  10. dependencies = [
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name='LessPassUser',
  15. fields=[
  16. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('password', models.CharField(max_length=128, verbose_name='password')),
  18. ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
  19. ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')),
  20. ('is_active', models.BooleanField(default=True)),
  21. ('is_admin', models.BooleanField(default=False)),
  22. ],
  23. options={
  24. 'verbose_name_plural': 'Users',
  25. },
  26. ),
  27. migrations.CreateModel(
  28. name='Entry',
  29. fields=[
  30. ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')),
  31. ('modified', models.DateTimeField(auto_now=True, verbose_name='modified')),
  32. ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
  33. ('login', models.CharField(default='', max_length=255)),
  34. ('site', models.CharField(default='', max_length=255)),
  35. ('title', models.CharField(blank=True, max_length=255, null=True)),
  36. ('username', models.CharField(blank=True, max_length=255, null=True)),
  37. ('email', models.EmailField(blank=True, max_length=254, null=True)),
  38. ('description', models.TextField(blank=True, null=True)),
  39. ('url', models.URLField(blank=True, null=True)),
  40. ],
  41. options={
  42. 'verbose_name_plural': 'Entries',
  43. },
  44. ),
  45. migrations.CreateModel(
  46. name='PasswordInfo',
  47. fields=[
  48. ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
  49. ('counter', models.IntegerField(default=1)),
  50. ('settings', models.TextField()),
  51. ('length', models.IntegerField(default=12)),
  52. ],
  53. options={
  54. 'verbose_name_plural': 'Password info',
  55. },
  56. ),
  57. migrations.AddField(
  58. model_name='entry',
  59. name='password',
  60. field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.PasswordInfo'),
  61. ),
  62. migrations.AddField(
  63. model_name='entry',
  64. name='user',
  65. field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to=settings.AUTH_USER_MODEL),
  66. ),
  67. ]