Borrowing-TrackerBackend/equipment_tracker/breakages/migrations/0001_initial.py

28 lines
970 B
Python

# Generated by Django 4.2.7 on 2023-12-08 15:33
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('transactions', '0001_initial'),
('equipments', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='BreakageReport',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('resolved', models.BooleanField(default=False)),
('timestamp', models.DateTimeField(default=django.utils.timezone.now, editable=False)),
('equipments', models.ManyToManyField(to='equipments.equipmentinstance')),
('transaction', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='transactions.transaction')),
],
),
]