# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-07-14 06:06
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Department',
            fields=[
                ('department_id', models.AutoField(primary_key=True, serialize=False)),
                ('department_name', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Facility',
            fields=[
                ('management_id', models.AutoField(primary_key=True, serialize=False)),
                ('purchase_date', models.DateField(verbose_name='purchase date')),
                ('status', models.BooleanField()),
                ('registration_date', models.DateTimeField(verbose_name='registration date')),
                ('update_date', models.DateTimeField(verbose_name='update date')),
                ('item_name', models.CharField(max_length=50)),
                ('model_id', models.CharField(max_length=50)),
                ('specification', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('item_id', models.AutoField(primary_key=True, serialize=False)),
                ('item_name', models.CharField(max_length=50)),
                ('service_life', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Location',
            fields=[
                ('location_id', models.AutoField(primary_key=True, serialize=False)),
                ('location_name', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Maker',
            fields=[
                ('maker_id', models.AutoField(primary_key=True, serialize=False)),
                ('maker_name', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Staff',
            fields=[
                ('staff_id', models.AutoField(primary_key=True, serialize=False)),
                ('staff_number', models.CharField(default='', max_length=50, unique=True)),
                ('staff_name', models.CharField(max_length=50)),
                ('password', models.CharField(max_length=50)),
                ('department_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Department')),
            ],
        ),
        migrations.AddField(
            model_name='facility',
            name='ex_location_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Location'),
        ),
        migrations.AddField(
            model_name='facility',
            name='item_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Item'),
        ),
        migrations.AddField(
            model_name='facility',
            name='location_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Location'),
        ),
        migrations.AddField(
            model_name='facility',
            name='maker_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Maker'),
        ),
        migrations.AddField(
            model_name='facility',
            name='registration_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Staff'),
        ),
        migrations.AddField(
            model_name='facility',
            name='update_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='fcm.Staff'),
        ),
    ]
