You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
Python
36 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10.2 on 2016-10-18 19:07
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('members', '0004_auto_20161018_1744'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='MaterialPart',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=30)),
|
|
('buy_date', models.DateField(verbose_name='purchase date')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Ownership',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('count', models.IntegerField(default=1)),
|
|
('material', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='material.MaterialPart')),
|
|
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='members.Member')),
|
|
],
|
|
),
|
|
]
|