mirror of
https://github.com/Rushilwiz/chirper.git
synced 2025-04-29 08:19:50 -04:00
29 lines
912 B
Python
29 lines
912 B
Python
# Generated by Django 3.0.5 on 2020-04-30 04:08
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Post',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=100)),
|
|
('content', models.TextField()),
|
|
('date_posted', models.DateTimeField(auto_now_add=True)),
|
|
('likes', models.IntegerField()),
|
|
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|