Commit 7f2f9d39 authored by Migs Atienza's avatar Migs Atienza

Made Migrations

parent 5206ff8d
No preview for this file type
# Generated by Django 4.1.6 on 2023-03-05 08:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ForumPost',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100)),
('body', models.TextField(max_length=1000)),
('author', models.CharField(max_length=100)),
('pub_datetime', models.DateTimeField()),
],
),
migrations.CreateModel(
name='Reply',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('body', models.TextField(max_length=1000)),
('author', models.CharField(max_length=100)),
('pub_datetime', models.DateTimeField()),
('forum_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='forum.forumpost')),
],
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment