demo-hackernews-with-django.../app/api/migrations/0001_initial.py
Andros Fenollosa a901b8d54a Add API
2021-06-22 15:43:26 +02:00

25 lines
666 B
Python

# 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)),
],
),
]