File: 0010_pizza_topping.py

package info (click to toggle)
mssql-django 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 644 kB
  • sloc: python: 5,289; sh: 105; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Generated by Django 3.1.7 on 2021-03-16 17:07

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ('testapp', '0009_test_drop_table_with_foreign_key_reference_part2'),
    ]

    operations = [
        migrations.CreateModel(
            name='Topping',
            fields=[
                ('name', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
            ],
        ),
        migrations.CreateModel(
            name='Pizza',
            fields=[
                ('name', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('toppings', models.ManyToManyField(to='testapp.Topping')),
            ],
        ),
    ]