From 9a7ce609134a30c42e9c0f778a0abda8bfeae2c2 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Mon, 3 Jul 2023 16:38:35 +0200 Subject: [PATCH] manage.py makemigrations --- .../tikette/migrations/0001_initial.py | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 backend/zetikettes/tikette/migrations/0001_initial.py diff --git a/backend/zetikettes/tikette/migrations/0001_initial.py b/backend/zetikettes/tikette/migrations/0001_initial.py new file mode 100644 index 0000000..3ce01fe --- /dev/null +++ b/backend/zetikettes/tikette/migrations/0001_initial.py @@ -0,0 +1,51 @@ +# Generated by Django 4.2.2 on 2023-07-03 14:37 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Tikategory', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=50)), + ('landscape', models.BooleanField()), + ], + options={ + 'verbose_name_plural': 'tikategoriez', + }, + ), + migrations.CreateModel( + name='Tisub', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=50)), + ('descritpion', models.TextField()), + ('default', models.TextField()), + ], + options={ + 'verbose_name_plural': 'tisubz', + }, + ), + migrations.CreateModel( + name='Tikette', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=100)), + ('svg', models.FileField(upload_to='')), + ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tikette.tikategory')), + ('subs', models.ManyToManyField(to='tikette.tisub')), + ], + options={ + 'verbose_name_plural': 'tikettz', + }, + ), + ]