You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
1.4 KiB

# Generated by Django 4.0.3 on 2022-04-09 12:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('posts', '0003_alter_post_options'),
]
operations = [
migrations.CreateModel(
name='CommentAuthor',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('author_name', models.CharField(max_length=60, verbose_name='Имя автора')),
('author_secret_hash', models.CharField(max_length=256, verbose_name='Хеш секрета')),
],
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('author_name', models.CharField(max_length=60, verbose_name='имя автора')),
('author_secret', models.CharField(blank=True, max_length=128, verbose_name='секретная строка')),
('reply', models.IntegerField(blank=True)),
('comment_text', models.TextField()),
('date', models.DateTimeField()),
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='posts.post')),
],
),
]