summaryrefslogtreecommitdiffstats
path: root/statuses/migrations
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-05 14:17:27 -0600
committerAndrew Godwin2022-11-05 14:17:27 -0600
commitd77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7 (patch)
treedd356a933b8179a22e5da6e938acd96a175ac0d6 /statuses/migrations
downloadtakahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.gz
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.tar.bz2
takahe-d77dcf62b4005a0f36ef2fa7ba6d3651d2ef38d7.zip
Initial commit (users and statuses)
Diffstat (limited to 'statuses/migrations')
-rw-r--r--statuses/migrations/0001_initial.py56
-rw-r--r--statuses/migrations/__init__.py0
2 files changed, 56 insertions, 0 deletions
diff --git a/statuses/migrations/0001_initial.py b/statuses/migrations/0001_initial.py
new file mode 100644
index 0000000..7b8eced
--- /dev/null
+++ b/statuses/migrations/0001_initial.py
@@ -0,0 +1,56 @@
+# Generated by Django 4.1.3 on 2022-11-05 19:43
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ("users", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="Status",
+ fields=[
+ (
+ "id",
+ models.BigAutoField(
+ auto_created=True,
+ primary_key=True,
+ serialize=False,
+ verbose_name="ID",
+ ),
+ ),
+ ("local", models.BooleanField()),
+ ("uri", models.CharField(blank=True, max_length=500, null=True)),
+ (
+ "visibility",
+ models.IntegerField(
+ choices=[
+ (0, "Public"),
+ (1, "Unlisted"),
+ (2, "Followers"),
+ (3, "Mentioned"),
+ ],
+ default=0,
+ ),
+ ),
+ ("text", models.TextField()),
+ ("created", models.DateTimeField(auto_now_add=True)),
+ ("updated", models.DateTimeField(auto_now=True)),
+ ("deleted", models.DateTimeField(blank=True, null=True)),
+ (
+ "identity",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.PROTECT,
+ related_name="statuses",
+ to="users.identity",
+ ),
+ ),
+ ],
+ ),
+ ]
diff --git a/statuses/migrations/__init__.py b/statuses/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/statuses/migrations/__init__.py