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.
30 lines
1022 B
30 lines
1022 B
9 months ago
|
# Generated by Django 5.0.6 on 2024-05-31 08:55
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('post', '0002_alter_category_id_alter_post_content_alter_post_id_and_more'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Comment',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('content', models.TextField()),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='post.post')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name_plural': '评论',
|
||
|
'db_table': 'comments',
|
||
|
'ordering': ['-created_at'],
|
||
|
},
|
||
|
),
|
||
|
]
|