
from south.db import db
from django.db import models
from merengue.collab.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding model 'CollabCommentUserType'
        db.create_table('collab_collabcommentusertype', (
            ('id', orm['collab.CollabCommentUserType:id']),
            ('name', orm['collab.CollabCommentUserType:name']),
            ('label', orm['collab.CollabCommentUserType:label']),
        ))
        db.send_create_signal('collab', ['CollabCommentUserType'])
        
        # Adding model 'CollabComment'
        db.create_table('collab_collabcomment', (
            ('id', orm['collab.CollabComment:id']),
            ('content_type', orm['collab.CollabComment:content_type']),
            ('object_pk', orm['collab.CollabComment:object_pk']),
            ('user', orm['collab.CollabComment:user']),
            ('user_name', orm['collab.CollabComment:user_name']),
            ('user_email', orm['collab.CollabComment:user_email']),
            ('user_url', orm['collab.CollabComment:user_url']),
            ('comment_user_type', orm['collab.CollabComment:comment_user_type']),
            ('comment', orm['collab.CollabComment:comment']),
            ('submit_date', orm['collab.CollabComment:submit_date']),
            ('ip_address', orm['collab.CollabComment:ip_address']),
        ))
        db.send_create_signal('collab', ['CollabComment'])
        
        # Adding model 'CollabCommentRevisorStatusType'
        db.create_table('collab_collabcommentrevisorstatustype', (
            ('id', orm['collab.CollabCommentRevisorStatusType:id']),
            ('name', orm['collab.CollabCommentRevisorStatusType:name']),
            ('label', orm['collab.CollabCommentRevisorStatusType:label']),
            ('decorator', orm['collab.CollabCommentRevisorStatusType:decorator']),
            ('result', orm['collab.CollabCommentRevisorStatusType:result']),
            ('reason', orm['collab.CollabCommentRevisorStatusType:reason']),
        ))
        db.send_create_signal('collab', ['CollabCommentRevisorStatusType'])
        
        # Adding model 'CollabCommentRevisorStatus'
        db.create_table('collab_collabcommentrevisorstatus', (
            ('id', orm['collab.CollabCommentRevisorStatus:id']),
            ('comment', orm['collab.CollabCommentRevisorStatus:comment']),
            ('revisor', orm['collab.CollabCommentRevisorStatus:revisor']),
            ('type', orm['collab.CollabCommentRevisorStatus:type']),
            ('revision_date', orm['collab.CollabCommentRevisorStatus:revision_date']),
            ('short_comment', orm['collab.CollabCommentRevisorStatus:short_comment']),
        ))
        db.send_create_signal('collab', ['CollabCommentRevisorStatus'])
        
    
    
    def backwards(self, orm):
        
        # Deleting model 'CollabCommentUserType'
        db.delete_table('collab_collabcommentusertype')
        
        # Deleting model 'CollabComment'
        db.delete_table('collab_collabcomment')
        
        # Deleting model 'CollabCommentRevisorStatusType'
        db.delete_table('collab_collabcommentrevisorstatustype')
        
        # Deleting model 'CollabCommentRevisorStatus'
        db.delete_table('collab_collabcommentrevisorstatus')
        
    
    
    models = {
        'auth.group': {
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'unique_together': "(('content_type', 'codename'),)"},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'collab.collabcomment': {
            'comment': ('django.db.models.fields.TextField', [], {}),
            'comment_user_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['collab.CollabCommentUserType']"}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'content_type_set_for_collabcomment'", 'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'ip_address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
            'object_pk': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'submit_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'auto_now_add': 'True', 'blank': 'True'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'collabcomment_comments'", 'null': 'True', 'to': "orm['auth.User']"}),
            'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'user_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
            'user_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
        },
        'collab.collabcommentrevisorstatus': {
            'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['collab.CollabComment']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'revision_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'auto_now_add': 'True', 'blank': 'True'}),
            'revisor': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'revised_collabcommentrevisorstatus_comments'", 'null': 'True', 'to': "orm['auth.User']"}),
            'short_comment': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['collab.CollabCommentRevisorStatusType']"})
        },
        'collab.collabcommentrevisorstatustype': {
            'decorator': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'reason': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'result': ('django.db.models.fields.CharField', [], {'default': "'just'", 'max_length': '30'})
        },
        'collab.collabcommentusertype': {
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '20'})
        },
        'contenttypes.contenttype': {
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        }
    }
    
    complete_apps = ['collab']
