選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

51 行
1.4 KiB

  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. ]