This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-15 20:15:01 +00:00
|
|
|
# Generated by Django 3.0.5 on 2020-05-15 19:58
|
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)),
|
|
|
|
(
|
|
|
|
"uuid",
|
|
|
|
models.UUIDField(
|
|
|
|
default=uuid.uuid4,
|
|
|
|
editable=False,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.TextField()),
|
2020-05-15 20:15:01 +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",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|