MyHome/primary/migrations/0002_auto_20200114_1542.py
2020-01-15 21:09:07 +07:00

29 lines
949 B
Python

# Generated by Django 3.0.2 on 2020-01-14 15:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('primary', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='DetailPenghuni',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('Role', models.IntegerField()),
('Rumah', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='primary.Rumah')),
('User', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='primary.User')),
],
),
migrations.AddField(
model_name='rumah',
name='Penghuni',
field=models.ManyToManyField(through='primary.DetailPenghuni', to='primary.User'),
),
]