mirror of
https://github.com/tanrax/org-social-relay
synced 2026-01-10 06:53:33 +01:00
50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
# Generated by Django 5.2.6 on 2025-09-22 14:31
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("feeds", "0004_mention"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="GroupMember",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("group_name", models.CharField(db_index=True, max_length=100)),
|
|
("joined_at", models.DateTimeField(auto_now_add=True)),
|
|
(
|
|
"profile",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="group_memberships",
|
|
to="feeds.profile",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ["-joined_at"],
|
|
"indexes": [
|
|
models.Index(
|
|
fields=["group_name", "-joined_at"],
|
|
name="groups_grou_group_n_f479e4_idx",
|
|
)
|
|
],
|
|
"unique_together": {("group_name", "profile")},
|
|
},
|
|
),
|
|
]
|