2020-05-20 07:17:06 +00:00
|
|
|
# Generated by Django 3.0.6 on 2020-05-19 22:08
|
2020-03-03 22:35:25 +00:00
|
|
|
|
|
|
|
import uuid
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = []
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="CertificateKeyPair",
|
|
|
|
fields=[
|
|
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("last_updated", models.DateTimeField(auto_now=True)),
|
|
|
|
(
|
2020-05-20 07:17:06 +00:00
|
|
|
"kp_uuid",
|
2020-03-03 22:35:25 +00:00
|
|
|
models.UUIDField(
|
|
|
|
default=uuid.uuid4,
|
|
|
|
editable=False,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.TextField()),
|
2020-05-20 07:17:06 +00:00
|
|
|
(
|
|
|
|
"certificate_data",
|
|
|
|
models.TextField(help_text="PEM-encoded Certificate data"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"key_data",
|
|
|
|
models.TextField(
|
|
|
|
blank=True,
|
|
|
|
default="",
|
|
|
|
help_text="Optional Private Key. If this is set, you can use this keypair for encryption.",
|
|
|
|
),
|
|
|
|
),
|
2020-03-03 22:35:25 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
"verbose_name": "Certificate-Key Pair",
|
|
|
|
"verbose_name_plural": "Certificate-Key Pairs",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|