wedding-site-backend/wedding_site/primary/migrations/0001_initial.py
2024-02-11 15:26:29 +00:00

40 lines
1.3 KiB
Python

# Generated by Django 5.0.2 on 2024-02-10 17:58
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Image',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('alt_text', models.TextField()),
],
),
migrations.CreateModel(
name='Site',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('index', models.TextField()),
],
),
migrations.CreateModel(
name='Page',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('content', models.TextField()),
('name', models.CharField(max_length=200)),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='primary.site')),
],
),
]