2020-11-24 19:44:13 +00:00
|
|
|
# Generated by Django 3.0.7 on 2020-11-24 19:39
|
2020-11-24 04:42:05 +00:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-03-08 16:49:10 +00:00
|
|
|
("bookwyrm", "0011_auto_20201113_1727"),
|
2020-11-24 04:42:05 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-03-08 16:49:10 +00:00
|
|
|
name="Attachment",
|
2020-11-24 04:42:05 +00:00
|
|
|
fields=[
|
2021-03-08 16:49:10 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.AutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created_date", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("updated_date", models.DateTimeField(auto_now=True)),
|
|
|
|
("remote_id", models.CharField(max_length=255, null=True)),
|
|
|
|
(
|
|
|
|
"image",
|
|
|
|
models.ImageField(blank=True, null=True, upload_to="status/"),
|
|
|
|
),
|
|
|
|
("caption", models.TextField(blank=True, null=True)),
|
|
|
|
(
|
|
|
|
"status",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="attachments",
|
|
|
|
to="bookwyrm.Status",
|
|
|
|
),
|
|
|
|
),
|
2020-11-24 04:42:05 +00:00
|
|
|
],
|
|
|
|
options={
|
2021-03-08 16:49:10 +00:00
|
|
|
"abstract": False,
|
2020-11-24 04:42:05 +00:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|