2017-09-24 18:20:10 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.11.5 on 2017-09-24 14:53
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import datetime
|
2024-10-23 11:06:57 +02:00
|
|
|
|
2017-09-24 18:20:10 +02:00
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
2024-10-23 11:06:57 +02:00
|
|
|
dependencies = []
|
2017-09-24 18:20:10 +02:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2024-10-23 11:06:57 +02:00
|
|
|
name="ApiKey",
|
2017-09-24 18:20:10 +02:00
|
|
|
fields=[
|
2024-10-23 11:06:57 +02:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("key", models.CharField(max_length=128, verbose_name="API key")),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Where is this key used from?",
|
|
|
|
max_length=256,
|
|
|
|
verbose_name="Key name",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"last_used",
|
|
|
|
models.DateTimeField(
|
|
|
|
default=datetime.datetime(1970, 1, 1, 1, 0),
|
|
|
|
verbose_name="Last used",
|
|
|
|
),
|
|
|
|
),
|
2017-09-24 18:20:10 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|