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

29 lines
970 B
Python
Raw Normal View History

# Generated by Django 4.2.7 on 2024-01-05 10:26
2023-12-09 00:38:29 +08:00
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('equipments', '0001_initial'),
('transactions', '0001_initial'),
2023-12-09 00:38:29 +08:00
]
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')),
],
),
]