mirror of
https://github.com/thecyberlearn/hostinger-django-demo.git
synced 2026-08-18 23:32:56 +00:00
🎉 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
1.5 KiB
Python
45 lines
1.5 KiB
Python
# Generated by Django 4.2.7 on 2025-08-29 16:12
|
|
|
|
from django.db import migrations, models
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='BlogPost',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=200)),
|
|
('slug', models.SlugField(unique=True)),
|
|
('content', models.TextField()),
|
|
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('is_published', models.BooleanField(default=True)),
|
|
],
|
|
options={
|
|
'ordering': ['-created_at'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Contact',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100)),
|
|
('email', models.EmailField(max_length=254)),
|
|
('subject', models.CharField(max_length=200)),
|
|
('message', models.TextField()),
|
|
('created_at', models.DateTimeField(default=django.utils.timezone.now)),
|
|
],
|
|
options={
|
|
'ordering': ['-created_at'],
|
|
},
|
|
),
|
|
]
|