diff --git a/backend/app/migrations/0004_alter_item_state_alter_item_type.py b/backend/app/migrations/0004_alter_item_state_alter_item_type.py new file mode 100644 index 0000000..4db04ab --- /dev/null +++ b/backend/app/migrations/0004_alter_item_state_alter_item_type.py @@ -0,0 +1,43 @@ +# Generated by Django 5.0.3 on 2024-03-14 14:15 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("app", "0003_history"), + ] + + operations = [ + migrations.AlterField( + model_name="item", + name="state", + field=models.CharField( + choices=[ + ("neuf", "Neuf"), + ("bien", "Bien"), + ("use", "Usé"), + ("reparable", "Réparable"), + ("casse", "Cassé"), + ], + default="neuf", + max_length=20, + ), + ), + migrations.AlterField( + model_name="item", + name="type", + field=models.CharField( + choices=[ + ("light", "Light"), + ("son", "Son"), + ("structure", "Structure"), + ("autre", "Autre"), + ("elec", "Elec"), + ("secu", "Secu"), + ], + max_length=20, + ), + ), + ] diff --git a/backend/app/migrations/0005_item_description.py b/backend/app/migrations/0005_item_description.py new file mode 100644 index 0000000..2cf2fd5 --- /dev/null +++ b/backend/app/migrations/0005_item_description.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.3 on 2024-03-15 09:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("app", "0004_alter_item_state_alter_item_type"), + ] + + operations = [ + migrations.AddField( + model_name="item", + name="description", + field=models.CharField(blank=True, max_length=10000, null=True), + ), + ] diff --git a/backend/app/migrations/0006_item_pretable.py b/backend/app/migrations/0006_item_pretable.py new file mode 100644 index 0000000..15ecd53 --- /dev/null +++ b/backend/app/migrations/0006_item_pretable.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.3 on 2024-03-15 16:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("app", "0005_item_description"), + ] + + operations = [ + migrations.AddField( + model_name="item", + name="pretable", + field=models.BooleanField(default=False), + ), + ]