www-bocal/api/migrations/0001_initial.py

48 lines
1.3 KiB
Python
Raw Normal View History

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
2017-09-24 18:20:10 +02:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
2017-09-24 18:20:10 +02:00
operations = [
migrations.CreateModel(
name="ApiKey",
2017-09-24 18:20:10 +02:00
fields=[
(
"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
],
),
]