# Generated by Django 3.1.2 on 2020-11-14 09:29
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('accounts', '0033_member_rw'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Credential',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('code', models.UUIDField(default=uuid.uuid4, unique=True)),
|
|
('name', models.CharField(max_length=100)),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('data', models.BinaryField()),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='credentials', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|