mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-29 14:50:20 +00:00
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
# Generated by Django 2.2.2 on 2019-06-29 23:03
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
("bookmarks", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Tag",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("name", models.CharField(max_length=64)),
|
|
("date_added", models.DateTimeField()),
|
|
(
|
|
"owner",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name="bookmark",
|
|
name="tags",
|
|
field=models.ManyToManyField(to="bookmarks.Tag"),
|
|
),
|
|
]
|