|
|
# -*- coding: utf-8 -*-
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
dependencies = [
|
|
|
('boards', '0025_auto_20150825_2049'),
|
|
|
]
|
|
|
|
|
|
operations = [
|
|
|
migrations.CreateModel(
|
|
|
name='GlobalId',
|
|
|
fields=[
|
|
|
('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)),
|
|
|
('key', models.TextField()),
|
|
|
('key_type', models.TextField()),
|
|
|
('local_id', models.IntegerField()),
|
|
|
],
|
|
|
),
|
|
|
migrations.CreateModel(
|
|
|
name='KeyPair',
|
|
|
fields=[
|
|
|
('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)),
|
|
|
('public_key', models.TextField()),
|
|
|
('private_key', models.TextField()),
|
|
|
('key_type', models.TextField()),
|
|
|
('primary', models.BooleanField(default=False)),
|
|
|
],
|
|
|
),
|
|
|
migrations.CreateModel(
|
|
|
name='Signature',
|
|
|
fields=[
|
|
|
('id', models.AutoField(serialize=False, verbose_name='ID', primary_key=True, auto_created=True)),
|
|
|
('key_type', models.TextField()),
|
|
|
('key', models.TextField()),
|
|
|
('signature', models.TextField()),
|
|
|
('global_id', models.ForeignKey(to='boards.GlobalId')),
|
|
|
],
|
|
|
),
|
|
|
migrations.AddField(
|
|
|
model_name='post',
|
|
|
name='global_id',
|
|
|
field=models.OneToOneField(to='boards.GlobalId', null=True, blank=True),
|
|
|
),
|
|
|
]
|
|
|
|