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.

28 lines
1009 B

  1. # Generated by Django 3.1.2 on 2020-11-12 15: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. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  9. ('accounts', '0033_member_rw'),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Credential',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('code', models.UUIDField(default=uuid.uuid4, unique=True)),
  17. ('name', models.CharField(blank=True, max_length=200)),
  18. ('created', models.DateTimeField(auto_now_add=True)),
  19. ('data', models.BinaryField()),
  20. ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='credentials', to=settings.AUTH_USER_MODEL)),
  21. ],
  22. ),
  23. ]