Spaces:
Runtime error
Runtime error
| # Generated by Django 5.0.6 on 2024-05-12 07:12 | |
| from django.db import migrations, models | |
| class Migration(migrations.Migration): | |
| initial = True | |
| dependencies = [] | |
| operations = [ | |
| migrations.CreateModel( | |
| name="FabriRoll", | |
| fields=[ | |
| ( | |
| "id", | |
| models.BigAutoField( | |
| auto_created=True, | |
| primary_key=True, | |
| serialize=False, | |
| verbose_name="ID", | |
| ), | |
| ), | |
| ("name", models.CharField(max_length=100)), | |
| ("price", models.FloatField()), | |
| ("client", models.CharField(max_length=100)), | |
| ("description", models.TextField()), | |
| ("image", models.ImageField(upload_to="images/")), | |
| ("stock", models.IntegerField()), | |
| ("created_at", models.DateTimeField(auto_now_add=True)), | |
| ("updated_at", models.DateTimeField(auto_now=True)), | |
| ], | |
| ), | |
| ] | |