Source code for goat.migrations.0001_initial

# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-09 15:56
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


[docs]class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Authority', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('added', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('description', models.TextField(blank=True, null=True)), ('configuration', models.TextField(blank=True, null=True)), ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Concept', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('added', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('identifier', models.CharField(max_length=255, unique=True)), ('description', models.TextField(blank=True, null=True)), ('data', models.TextField(blank=True, null=True)), ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('authority', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='concepts', to='goat.Authority')), ('concept_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='instances', to='goat.Concept')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Identity', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('added', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('confidence', models.FloatField(default=1.0)), ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('concepts', models.ManyToManyField(related_name='identities', to='goat.Concept')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='IdentitySystem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('added', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('added_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='identity', name='part_of', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='identities', to='goat.IdentitySystem'), ), ]