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.

0008_encryptedpasswordprofiles.py 1.4 KiB

3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
3 vuotta sitten
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Generated by Django 3.0.7 on 2020-12-18 16:29
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. import uuid
  6. class Migration(migrations.Migration):
  7. dependencies = [
  8. ("api", "0007_lesspassuser_key"),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name="EncryptedPasswordProfile",
  13. fields=[
  14. (
  15. "created",
  16. models.DateTimeField(auto_now_add=True, verbose_name="created"),
  17. ),
  18. (
  19. "modified",
  20. models.DateTimeField(auto_now=True, verbose_name="modified"),
  21. ),
  22. (
  23. "id",
  24. models.UUIDField(
  25. default=uuid.uuid4,
  26. editable=False,
  27. primary_key=True,
  28. serialize=False,
  29. ),
  30. ),
  31. ("password_profile", models.TextField()),
  32. (
  33. "user",
  34. models.ForeignKey(
  35. on_delete=django.db.models.deletion.CASCADE,
  36. related_name="encrypted_password_profiles",
  37. to=settings.AUTH_USER_MODEL,
  38. ),
  39. ),
  40. ],
  41. options={
  42. "abstract": False,
  43. },
  44. ),
  45. ]