linkding/bookmarks/migrations/0001_initial.py

32 lines
1.1 KiB
Python
Raw Normal View History

2019-06-28 17:37:41 +00:00
# Generated by Django 2.2.2 on 2019-06-28 17:20
2019-06-27 06:09:51 +00:00
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='Bookmark',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('url', models.TextField()),
('title', models.CharField(max_length=512)),
('description', models.TextField()),
2019-06-28 17:37:41 +00:00
('website_title', models.CharField(max_length=512)),
('website_description', models.TextField()),
2019-06-27 06:09:51 +00:00
('unread', models.BooleanField(default=True)),
('date_added', models.DateTimeField()),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
]