

def forwards(self, orm):
    db.create_table('helpdesk_queue', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=100)), ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50, db_index=True)), ('email_address', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)), ('locale', self.gf('django.db.models.fields.CharField')(max_length=10, null=True, blank=True)), ('allow_public_submission', self.gf('django.db.models.fields.BooleanField')(default=False)), ('allow_email_submission', self.gf('django.db.models.fields.BooleanField')(default=False)), ('escalate_days', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)), ('new_ticket_cc', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('updated_ticket_cc', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('email_box_type', self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank=True)), ('email_box_host', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('email_box_port', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)), ('email_box_ssl', self.gf('django.db.models.fields.BooleanField')(default=False)), ('email_box_user', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('email_box_pass', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('email_box_imap_folder', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)), ('email_box_interval', self.gf('django.db.models.fields.IntegerField')(default='5', null=True, blank=True)), ('email_box_last_check', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['Queue'])
    db.create_table('helpdesk_ticket', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=200)), ('queue', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.Queue'])), ('created', self.gf('django.db.models.fields.DateTimeField')(blank=True)), ('modified', self.gf('django.db.models.fields.DateTimeField')(blank=True)), ('submitter_email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)), ('assigned_to', self.gf('django.db.models.fields.related.ForeignKey')(related_name='assigned_to', blank=True, null=True, to=orm['auth.User'])), ('status', self.gf('django.db.models.fields.IntegerField')(default=1)), ('on_hold', self.gf('django.db.models.fields.BooleanField')(default=False)), ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('resolution', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('priority', self.gf('django.db.models.fields.IntegerField')(default=3, blank=3)), ('last_escalation', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['Ticket'])
    db.create_table('helpdesk_followup', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ticket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.Ticket'])), ('date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2011, 4, 27, 15, 17, 4, 272904))), ('title', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)), ('comment', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('public', self.gf('django.db.models.fields.BooleanField')(default=False)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)), ('new_status', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['FollowUp'])
    db.create_table('helpdesk_ticketchange', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('followup', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.FollowUp'])), ('field', self.gf('django.db.models.fields.CharField')(max_length=100)), ('old_value', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('new_value', self.gf('django.db.models.fields.TextField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['TicketChange'])
    db.create_table('helpdesk_attachment', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('followup', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.FollowUp'])), ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)), ('filename', self.gf('django.db.models.fields.CharField')(max_length=100)), ('mime_type', self.gf('django.db.models.fields.CharField')(max_length=30)), ('size', self.gf('django.db.models.fields.IntegerField')())))
    db.send_create_signal('helpdesk', ['Attachment'])
    db.create_table('helpdesk_presetreply', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('body', self.gf('django.db.models.fields.TextField')())))
    db.send_create_signal('helpdesk', ['PreSetReply'])
    db.create_table('helpdesk_presetreply_queues', (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('presetreply', models.ForeignKey(orm['helpdesk.presetreply'], null=False)), ('queue', models.ForeignKey(orm['helpdesk.queue'], null=False))))
    db.create_unique('helpdesk_presetreply_queues', ['presetreply_id', 'queue_id'])
    db.create_table('helpdesk_escalationexclusion', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('date', self.gf('django.db.models.fields.DateField')())))
    db.send_create_signal('helpdesk', ['EscalationExclusion'])
    db.create_table('helpdesk_escalationexclusion_queues', (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('escalationexclusion', models.ForeignKey(orm['helpdesk.escalationexclusion'], null=False)), ('queue', models.ForeignKey(orm['helpdesk.queue'], null=False))))
    db.create_unique('helpdesk_escalationexclusion_queues', ['escalationexclusion_id', 'queue_id'])
    db.create_table('helpdesk_emailtemplate', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('template_name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('subject', self.gf('django.db.models.fields.CharField')(max_length=100)), ('heading', self.gf('django.db.models.fields.CharField')(max_length=100)), ('plain_text', self.gf('django.db.models.fields.TextField')()), ('html', self.gf('django.db.models.fields.TextField')()), ('locale', self.gf('django.db.models.fields.CharField')(max_length=10, null=True, blank=True))))
    db.send_create_signal('helpdesk', ['EmailTemplate'])
    db.create_table('helpdesk_kbcategory', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('title', self.gf('django.db.models.fields.CharField')(max_length=100)), ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50, db_index=True)), ('description', self.gf('django.db.models.fields.TextField')())))
    db.send_create_signal('helpdesk', ['KBCategory'])
    db.create_table('helpdesk_kbitem', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.KBCategory'])), ('title', self.gf('django.db.models.fields.CharField')(max_length=100)), ('question', self.gf('django.db.models.fields.TextField')()), ('answer', self.gf('django.db.models.fields.TextField')()), ('votes', self.gf('django.db.models.fields.IntegerField')(default=0)), ('recommendations', self.gf('django.db.models.fields.IntegerField')(default=0)), ('last_updated', self.gf('django.db.models.fields.DateTimeField')(blank=True))))
    db.send_create_signal('helpdesk', ['KBItem'])
    db.create_table('helpdesk_savedsearch', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])), ('title', self.gf('django.db.models.fields.CharField')(max_length=100)), ('shared', self.gf('django.db.models.fields.BooleanField')(default=False)), ('query', self.gf('django.db.models.fields.TextField')())))
    db.send_create_signal('helpdesk', ['SavedSearch'])
    db.create_table('helpdesk_usersettings', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)), ('settings_pickled', self.gf('django.db.models.fields.TextField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['UserSettings'])
    db.create_table('helpdesk_ignoreemail', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.CharField')(max_length=100)), ('date', self.gf('django.db.models.fields.DateField')(blank=True)), ('email_address', self.gf('django.db.models.fields.CharField')(max_length=150)), ('keep_in_mailbox', self.gf('django.db.models.fields.BooleanField')(default=False))))
    db.send_create_signal('helpdesk', ['IgnoreEmail'])
    db.create_table('helpdesk_ignoreemail_queues', (('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('ignoreemail', models.ForeignKey(orm['helpdesk.ignoreemail'], null=False)), ('queue', models.ForeignKey(orm['helpdesk.queue'], null=False))))
    db.create_unique('helpdesk_ignoreemail_queues', ['ignoreemail_id', 'queue_id'])
    db.create_table('helpdesk_ticketcc', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ticket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.Ticket'])), ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)), ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, null=True, blank=True)), ('can_view', self.gf('django.db.models.fields.BooleanField')(default=False)), ('can_update', self.gf('django.db.models.fields.BooleanField')(default=False))))
    db.send_create_signal('helpdesk', ['TicketCC'])
    db.create_table('helpdesk_customfield', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('name', self.gf('django.db.models.fields.SlugField')(max_length=50, unique=True, db_index=True)), ('label', self.gf('django.db.models.fields.CharField')(max_length='30')), ('help_text', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('data_type', self.gf('django.db.models.fields.CharField')(max_length=100)), ('max_length', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)), ('decimal_places', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)), ('list_values', self.gf('django.db.models.fields.TextField')(null=True, blank=True)), ('required', self.gf('django.db.models.fields.BooleanField')(default=False)), ('staff_only', self.gf('django.db.models.fields.BooleanField')(default=False))))
    db.send_create_signal('helpdesk', ['CustomField'])
    db.create_table('helpdesk_ticketcustomfieldvalue', (('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ticket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.Ticket'])), ('field', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['helpdesk.CustomField'])), ('value', self.gf('django.db.models.fields.TextField')(null=True, blank=True))))
    db.send_create_signal('helpdesk', ['TicketCustomFieldValue'])
    db.create_unique('helpdesk_ticketcustomfieldvalue', ['ticket_id', 'field_id'])

dataset/ETHPy150Open rossp/django-helpdesk/helpdesk/south_migrations/0001_initial.py Migration.forwards/original