|
| 1 | +# Generated by Django 5.2.8 on 2025-12-11 05:37 |
| 2 | + |
| 3 | +import django.db.models.deletion |
| 4 | +from django.db import migrations, models |
| 5 | + |
| 6 | + |
| 7 | +class Migration(migrations.Migration): |
| 8 | + |
| 9 | + initial = True |
| 10 | + |
| 11 | + dependencies = [ |
| 12 | + ('registration', '0001_initial'), |
| 13 | + ] |
| 14 | + |
| 15 | + operations = [ |
| 16 | + migrations.CreateModel( |
| 17 | + name='ShopSupplier', |
| 18 | + fields=[ |
| 19 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 20 | + ('phoneNumber', models.CharField(max_length=15)), |
| 21 | + ('email', models.EmailField(max_length=254)), |
| 22 | + ('streetNo', models.CharField(max_length=10)), |
| 23 | + ('streetNome', models.CharField(max_length=100)), |
| 24 | + ('suburb', models.CharField(max_length=100)), |
| 25 | + ('state', models.CharField(max_length=100)), |
| 26 | + ('postcode', models.CharField(max_length=10)), |
| 27 | + ('country', models.CharField(max_length=100)), |
| 28 | + ], |
| 29 | + ), |
| 30 | + migrations.CreateModel( |
| 31 | + name='ShopOrder', |
| 32 | + fields=[ |
| 33 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 34 | + ('product_name', models.CharField(max_length=100)), |
| 35 | + ('itemOrdered', models.CharField(max_length=100)), |
| 36 | + ('dateOrdered', models.DateTimeField(auto_now_add=True)), |
| 37 | + ('amountSpent', models.DecimalField(decimal_places=2, max_digits=10)), |
| 38 | + ('useFor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registration.petcarer')), |
| 39 | + ], |
| 40 | + ), |
| 41 | + migrations.CreateModel( |
| 42 | + name='ShopItem', |
| 43 | + fields=[ |
| 44 | + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 45 | + ('itemName', models.CharField(max_length=100)), |
| 46 | + ('price', models.DecimalField(decimal_places=2, max_digits=10)), |
| 47 | + ('inStock', models.IntegerField()), |
| 48 | + ('supplierPrice', models.DecimalField(decimal_places=2, max_digits=10)), |
| 49 | + ('supplier', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.shopsupplier')), |
| 50 | + ], |
| 51 | + ), |
| 52 | + ] |
0 commit comments