demo-hackernews-with-django.../app/api/migrations/0001_initial.py

25 lines
666 B
Python
Raw Permalink Normal View History

2021-06-22 15:43:26 +02:00
# Generated by Django 3.2.4 on 2021-06-22 10:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=50)),
('url', models.CharField(max_length=500)),
('votes', models.IntegerField()),
('created', models.DateTimeField(auto_now_add=True)),
],
),
]