# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'TabellioDocType'
        db.create_table('pfwb_tabelliodoctype', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('filetype', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['docbow.FileType'], unique=True)),
            ('tabellio_doc_type', self.gf('django.db.models.fields.CharField')(max_length=64)),
        ))
        db.send_create_signal('pfwb', ['TabellioDocType'])


    def backwards(self, orm):
        # Deleting model 'TabellioDocType'
        db.delete_table('pfwb_tabelliodoctype')


    models = {
        'docbow.filetype': {
            'Meta': {'ordering': "['name']", 'object_name': 'FileType'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
        },
        'pfwb.plonefiletype': {
            'Meta': {'object_name': 'PloneFileType', 'db_table': "'plone_plonefiletype'"},
            'filetype': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['docbow.FileType']", 'unique': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'plone_portal_type': ('django.db.models.fields.CharField', [], {'max_length': '64'})
        },
        'pfwb.tabelliodoctype': {
            'Meta': {'object_name': 'TabellioDocType'},
            'filetype': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['docbow.FileType']", 'unique': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'tabellio_doc_type': ('django.db.models.fields.CharField', [], {'max_length': '64'})
        }
    }

    complete_apps = ['pfwb']