<filename>smart-bookmarks-django/smart_bookmarks/core/migrations/0002_add_page_model.py
# Generated by Django 2.2.10 on 2020-03-07 22:17

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0001_add_bookmark_model"),
    ]

    operations = [
        migrations.CreateModel(
            name="Page",
            fields=[
                ("id", models.AutoField(primary_key=True, serialize=False)),
                ("text", models.TextField()),
                ("created", models.DateTimeField(auto_now_add=True)),
                ("updated", models.DateTimeField(auto_now=True)),
                (
                    "bookmark",
                    models.OneToOneField(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="_page",
                        to="core.Bookmark",
                    ),
                ),
            ],
            options={"db_table": "page"},
        ),
    ]
