django2/demo/migration/migrations/0001_initial.py
Peter Kotyczka 679d7d1b58 smc
2024-03-24 22:58:33 +01:00

34 lines
1.1 KiB
Python
Executable File

# Generated by Django 5.0.2 on 2024-02-23 10:59
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=120)),
('content', models.TextField(blank=True, null=True)),
('price', models.DecimalField(decimal_places=2, default=99.99, max_digits=15)),
],
),
migrations.CreateModel(
name='ShoppingItem',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateField(default=datetime.date.today)),
('name', models.CharField(max_length=120)),
('done', models.BooleanField(default=False)),
],
),
]