24 lines
746 B
Python
24 lines
746 B
Python
|
# Generated by Django 4.2.7 on 2024-11-22 22:02
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('inventory', '0008_alter_item_event_alter_itemplacement_container_and_more'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Comment',
|
||
|
fields=[
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('comment', models.TextField()),
|
||
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||
|
('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='inventory.item')),
|
||
|
],
|
||
|
),
|
||
|
]
|