50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
# Generated by Django 4.1.7 on 2023-03-11 00:11
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("activities", "0012_in_reply_to_index"),
|
|
("users", "0014_domain_notes"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Bookmark",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
(
|
|
"identity",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="bookmarks",
|
|
to="users.identity",
|
|
),
|
|
),
|
|
(
|
|
"post",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="bookmarks",
|
|
to="activities.post",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"unique_together": {("identity", "post")},
|
|
},
|
|
),
|
|
]
|